Skip to main content
Glama

Cito API

Call API

call_api
Read-onlyIdempotent

Power 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

NameRequiredDescriptionDefault
pathYesPath starting with /. Allowlisted prefixes only. Example: "/cs2/rankings/teams".
queryNoQuery params as a plain object (alternative to queryJson). Example: {"year":2026}.
methodNoHTTP method. GET only: call_api is read-only. Example: "GET".GET
queryJsonNoStringified JSON object of query params. Example: "{\"page\":1,\"limit\":20}".{}

Output Schema

NameRequiredDescriptionDefault
okYestrue if the tool succeeded
dataNoResult payload when ok is true; null on error
metaYes
errorNo
partialNo
paginationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / properties / bodyJson
      Removed value: -{
      -  "description": "Stringified JSON body for POST only (rare).",
      -  "type": "string"
      -}
    • changedInput schema / properties / method / description
      Previous value: -"HTTP method. Prefer GET. Example: \"GET\"."New value: +"HTTP method. GET only: call_api is read-only. Example: \"GET\"."
    • changedInput schema / properties / method / enum
      Previous value: -[
      -  "GET",
      -  "POST"
      -]New value: +[
      +  "GET"
      +]
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly/openWorld/idempotent/non-destructive, but the description adds behavior the agent could not otherwise know: the allowlist of path prefixes, rejection of absolute URLs and traversal with the concrete error code PATH_NOT_ALLOWED, quota cost ("API calls: 1"), and the fact that responses are unshaped raw JSON under data.raw. That is genuine added context rather than restatement of the hints.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Headings and bullets front-load the escape-hatch framing and the when/when-not decision before any parameter detail, and most sentences carry actionable constraints. The multi-line tennis block is dense and endpoint-specific, slightly over-weighted for a generic escape hatch, but it is clearly partitioned rather than rambling.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a high-complexity, open-world tool with 4 parameters, an allowlist, and a worked example, the description covers invocation form, path constraints, error behavior, and quota impact; return values are covered by the existing output schema plus the data.raw note. Nothing an agent needs to call it correctly appears to be missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so a 3 would be the floor, but the description goes well beyond it: paths are relative to the API base ("/tennis/players", not "/api/v1/tennis/players"), query params belong in query or queryJson rather than the path, and per-endpoint conventions are spelled out (h2h requires players or player1_id/player2_id; /tennis/players caps at 100 with batch for rosters; rankings defaults to rank_max=100). This prevents concrete invocation errors the schema alone would not.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Power escape hatch: allowlisted Cito REST call with unshaped raw JSON in data.raw" names a specific verb (REST call), a specific constrained resource (allowlisted Cito paths), and the return shape, which no curated sibling offers. It is immediately distinguishable from the named alternatives (live, schedule, profiles, standings, H2H, previews).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Three explicit when-to-use bullets (uncurated long-tail paths, debugging payloads, user-supplied OpenAPI path) are paired with a when-not rule: "Do not use when: a curated tool covers the outcome," plus a prefer-curated directive for standard jobs. It also flags the operational hazard ("Avoid parallel storms; same plan rate limits apply"), leaving nothing to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources