Call API
call_apiPower escape hatch: allowlisted Cito REST call with unshaped raw JSON in data.raw.
When to use:
Long-tail paths not yet curated (Fortnite, CS2 leaderboards, niche stats)
Debugging payloads while building an app
User explicitly knows an OpenAPI path
Prefer curated tools for all standard jobs (live, schedule, profiles, standings, H2H, previews).
Do not use when: a curated tool covers the outcome. Avoid parallel storms; same plan rate limits apply.
Paths are relative to the API base, so "/tennis/players", not "/api/v1/tennis/players". Put query params in query or queryJson, not in the path. Tennis: /tennis/h2h takes players=a,b, or player1_id and player2_id (one form is required). /tennis/players has limit up to 100 (over that is a 422; use /tennis/players/batch for a roster). /tennis/tournaments/calendar needs no year (default this year) and returns every row unless given limit. /tennis/rankings defaults to rank_max=100: pass rank_max=5000 for the whole list. /tennis/schedule returns the whole day unless given limit.
Path must start with / and match allowlisted prefixes: /health, /lol, /cs2, /dota2, /cod, /ufc, /fortnite, /apex, /tennis, /raf, /bkfc, /bellator, /pride, /strikeforce, /wec, /dream, /elitexc, /affliction, /pfl, /oktagon, /one, /cage-warriors, /lfa, /ksw, /rizin, /mma. Rejects absolute URLs and path traversal → PATH_NOT_ALLOWED.
Parallel-safe: yes but discouraged in bulk. API calls: 1. Example: { "method": "GET", "path": "/cs2/rankings/teams", "queryJson": "{"page":1,"limit":20}" }
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "call_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path starting with /. Allowlisted prefixes only. Example: "/cs2/rankings/teams". | |
| query | No | Query params as a plain object (alternative to queryJson). Example: {"year":2026}. | |
| method | No | HTTP method. GET only: call_api is read-only. Example: "GET". | GET |
| queryJson | No | Stringified JSON object of query params. Example: "{\"page\":1,\"limit\":20}". | {} |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | true if the tool succeeded | |
| data | No | Result payload when ok is true; null on error | |
| meta | Yes | ||
| error | No | ||
| partial | No | ||
| pagination | No |