Skip to main content
Glama

opendota_api_call

Call the OpenDota API to fetch Dota 2 match, player, and hero data, or send POST requests for replay parsing and player refresh.

Instructions

Вызвать OpenDota API. По умолчанию GET. Путь и параметры найдите через opendota_find_endpoints / opendota_endpoint_info. POST поддерживает /request/{match_id} (10 единиц лимита) и /players/{account_id}/refresh. GET /request/{jobId} проверяет ID задания, не матча. Игроки используют Steam32 account_id. Для больших ответов выбирайте fields и query limit/project.

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": "opendota_api_call"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesОтносительный путь, например /players/1/matches; без /api и query.
fieldsNoОставить указанные поля верхнего уровня в объекте или каждом элементе массива.
methodNoGET
paramsNoQuery параметры; массивы передаются повторяющимися ключами.
max_charsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false, so the safety bar is lower, yet the description still adds real behavior: POST is restricted to two specific endpoints with a rate/unit limit, and the /request/{jobId} versus /request/{match_id} semantic trap is called out. It does not mention authentication requirements or what a POST to refresh actually triggers, which keeps it short of a 5.

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

Conciseness5/5

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

Every sentence carries distinct operational information: default method, discovery routing, POST allowlist with limits, the jobId/match_id distinction, account_id format, and payload-trimming advice. The most decision-critical facts (GET default, use discovery tools) are front-loaded, with edge cases after.

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

Completeness4/5

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

For a generic open-world HTTP passthrough with five parameters, a nested params object, and no output schema, the description covers most of what an agent needs: how to obtain the path, which methods exist, the two allowed POST endpoints, and how to keep responses manageable. The only notable gap is max_chars, which is neither described nor explained in the schema.

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

Parameters4/5

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

With 60% schema coverage, the description compensates usefully: it explains that path is relative without /api or query, that fields trims large payloads, and that params supports limit/project for large responses. The method default (GET) and fields behavior are reinforced rather than merely repeated. max_chars is never explained in either the description or the schema, so coverage is not complete.

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

Purpose4/5

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

The description states a concrete action (execute a call against the OpenDota API) and immediately scopes it: default GET, arbitrary path, params. It distinguishes itself from the discovery siblings by telling the agent that path and parameters come from opendota_find_endpoints / opendota_endpoint_info, so the agent knows this is the executor rather than the catalog. It stops short of a single crisp sentence defining the tool, since 'Вызвать OpenDota API' partially restates the name, but the added routing detail makes the role unambiguous.

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?

Explicit when-to-use routing: find the path and params via the two sibling discovery tools, then call this one. It also states which POST endpoints are permitted and their limit (10 units for /request/{match_id}), warns that GET /request/{jobId} takes a job ID rather than a match ID, and specifies Steam32 account_id for players. These are exactly the conditions an agent needs to choose and shape the call correctly.

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