{"components":{"schemas":{"JsonRpcRequest":{"properties":{"id":{"description":"Omit for notifications (no reply).","type":["string","integer","null"]},"jsonrpc":{"enum":["2.0"],"type":"string"},"method":{"enum":["initialize","ping","tools/list","tools/call","prompts/list","notifications/initialized"],"type":"string"},"params":{"description":"initialize: { protocolVersion, capabilities, clientInfo }. tools/call: { name, arguments }.","type":"object"}},"required":["jsonrpc","method"],"type":"object"},"JsonRpcResponse":{"properties":{"error":{"properties":{"code":{"type":"integer"},"message":{"type":"string"}},"type":"object"},"id":{"type":["string","integer","null"]},"jsonrpc":{"enum":["2.0"],"type":"string"},"result":{"description":"initialize: protocolVersion, capabilities, serverInfo { name: mlo, version: 1.0.0 }, instructions. tools/list: { tools: [{ name, title, description, inputSchema, annotations }] }. tools/call: { content: [{ type: text, text }], structuredContent, isError }.","type":"object"}},"required":["jsonrpc","id"],"type":"object"},"Tools":{"description":"The 11 v1 tools. Full input schemas are served live by tools/list.","properties":{"mlo_events":{"description":"53 stored events. Upcoming by default.","properties":{"from":{"description":"Earliest start date YYYY-MM-DD. Default today.","type":"string"},"limit":{"description":"Default 50, max 100.","type":"integer"},"org":{"description":"Perfect Game, NCS or USSSA.","type":"string"},"upcoming_only":{"description":"Default true.","type":"boolean"}},"type":"object"},"mlo_player_profile":{"description":"Full profile + MLO Rating (1-100, age-group relative).","properties":{"playerId":{"description":"Required. From mlo_player_search, e.g. jake-morrison.","type":"string"}},"type":"object"},"mlo_player_search":{"description":"Search stored player profiles (fictional samples).","properties":{"gradClass":{"description":"e.g. 2027.","type":"integer"},"limit":{"description":"Default 10, max 25.","type":"integer"},"query":{"description":"Required. Name, nickname, hometown or team (min 2 chars).","type":"string"}},"type":"object"},"mlo_pricing":{"description":"Credit packs, training prices, Sports Agent activation, recruiting package. No arguments.","type":"object"},"mlo_rankings":{"description":"TBA team rankings for one state (21 states) and age (9U-14U). Snapshot Dec 5, 2026.","properties":{"age":{"description":"9U, 10U, 11U, 12U, 13U or 14U. Omit for top teams of every age.","type":"string"},"include_radar":{"description":"Also return On the Radar. Default false.","type":"boolean"},"limit":{"description":"Teams per age. Default 10, max 50.","type":"integer"},"state":{"description":"Required. Abbreviation (CA) or full name.","type":"string"}},"type":"object"},"mlo_rankings_top25":{"description":"National Top 25 (10U and 11U only), frozen Nov 25, 2026.","properties":{"age":{"description":"10U or 11U. Omit for both.","type":"string"}},"type":"object"},"mlo_saturday_games":{"description":"Saturday game slate (277 games Dec 5, 2026).","properties":{"age":{"description":"Division filter, e.g. 12U.","type":"string"},"org":{"description":"Perfect Game, NCS or USSSA.","type":"string"}},"type":"object"},"mlo_sports_agent":{"description":"Ask the AI Sports Agent a question for a player. Single-turn in v1.","properties":{"history":{"description":"Optional prior turns [{role, text}], max 8. Passed through only in LLM mode.","items":{"type":"object"},"type":"array"},"message":{"description":"Required. Max 2000 characters.","type":"string"},"playerId":{"description":"Optional. Without one, answers for the default profile and says so.","type":"string"}},"type":"object"},"mlo_tournament_results":{"description":"Posted post-game results, snapshot Dec 5, 2026, most recent first.","properties":{"date":{"description":"Exact date YYYY-MM-DD.","type":"string"},"division":{"description":"Substring match on division.","type":"string"},"limit":{"description":"Default 50, max 200.","type":"integer"},"tournament":{"description":"Substring match on tournament name.","type":"string"}},"type":"object"},"mlo_training_programs":{"description":"Training programs with pricing (Velo Lab $29/mo, First-Step Speed $19/mo). Free demo on every program.","properties":{"programId":{"description":"e.g. velo-lab. Omit to list all.","type":"string"}},"type":"object"},"mlo_what_can_i_do":{"description":"Server overview: data freshness, tool list, ground rules. No arguments.","type":"object"}},"type":"object"}}},"info":{"description":"MLO agent API for youth baseball: team rankings, events, Saturday game slates, tournament results, player profiles with the MLO Rating, training programs, pricing, and an AI Sports Agent. JSON-RPC 2.0 over Streamable HTTP, stateless. Read-only in v1 — no writes, no payments, no account actions, no auth. Rankings are MLO's snapshot of Travel Baseball Authority data (scraped Dec 5, 2026) — credit Travel Baseball Authority when showing them. Player profiles are fictional sample players in Perfect Game stat format, not real players.","title":"Major League Operator (MLO) MCP API","version":"1.0.0"},"openapi":"3.0.3","paths":{"/api/mcp":{"post":{"description":"One JSON-RPC message (or a batch of 1-10) per POST. Methods: initialize, ping, tools/list, tools/call, prompts/list. Notifications (no id) return 202 with no body. Tool results arrive as MCP content blocks with structuredContent. Tool-level failures return isError: true with HTTP 200; protocol errors use JSON-RPC codes (-32700 parse, -32600 invalid, -32601 method not found, -32602 invalid params / unknown tool).","operationId":"mcpRpc","requestBody":{"content":{"application/json":{"examples":{"initialize":{"value":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"example-client","version":"1.0.0"},"protocolVersion":"2025-11-25"}}},"toolsCallAgent":{"value":{"id":5,"jsonrpc":"2.0","method":"tools/call","params":{"arguments":{"message":"What should I work on this week?","playerId":"jake-morrison"},"name":"mlo_sports_agent"}}},"toolsCallProfile":{"value":{"id":4,"jsonrpc":"2.0","method":"tools/call","params":{"arguments":{"playerId":"jake-morrison"},"name":"mlo_player_profile"}}},"toolsCallRankings":{"value":{"id":3,"jsonrpc":"2.0","method":"tools/call","params":{"arguments":{"age":"12U","limit":5,"state":"CA"},"name":"mlo_rankings"}}},"toolsList":{"value":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}},"schema":{"$ref":"#/components/schemas/JsonRpcRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonRpcResponse"}}},"description":"JSON-RPC reply (or array of replies for a batch)."},"202":{"description":"Notification accepted, no reply."},"400":{"description":"Parse error or malformed batch."},"405":{"description":"Use POST with a JSON-RPC message."},"413":{"description":"Body too large (over 1 MB)."}},"summary":"MCP endpoint (JSON-RPC 2.0)"}}},"servers":[{"description":"Production","url":"https://www.majorleagueoperator.com"}]}