Skip to main content
Glama

Get an endpoint definition

docs_get_api_operation
Read-only

One endpoint exactly as the OpenAPI spec defines it, $refs resolved: description, parameters and request body schema, with the responses and webhooks by name (ask for them with include). Examples are listed by name; get_api_example returns one.

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": {
      "api": "<api>",
      "method": "<method>",
      "path": "<path>"
    },
    "name": "docs_get_api_operation"
  }
}

Input Schema

NameRequiredDescriptionDefault
apiYesAPI name: flow-api, channels-api
pathYesEndpoint path as in list_api_operations, e.g. /v1/messages
methodYesHTTP method, e.g. POST
includeNoAlso return the full response schemas and/or the webhook payload schemas (large); without it responses are listed by status and description

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

readOnlyHint=true already establishes this as a safe read. The description adds real value by disclosing that $refs are resolved, that include payloads are large, and that without include responses are listed only by status and description. It stops short of describing output shape or size expectations for the base response.

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?

Three tight sentences, front-loaded with what you get and followed by the include and examples caveats. The parenthetical '(ask for them with include)' is slightly awkward but carries needed information without padding.

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 read-only lookup with no output schema, the description adequately covers the return payload's composition, the opt-in expansion behavior, and the sibling that returns examples. Minor gap: no mention of failure modes for an invalid method/path combination.

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

Parameters3/5

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

Schema coverage is 100%, so the schema already documents all four parameters, including the include enum and its 'large' caveat. The description's 'ask for them with include' and 'examples are listed by name' largely restate schema text; the useful addition is that examples come back as names pointing at docs_get_api_example.

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?

States precisely what is returned: one endpoint definition with $refs resolved, covering description, parameters, request body schema, responses and webhooks. It explicitly distinguishes itself from docs_get_api_example ('get_api_example returns one') for examples, though it does not contrast with docs_list_api_operations beyond the incidental mention of 'list_api_operations' in the path parameter.

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

Usage Guidelines4/5

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

Clear operational guidance for the include flag ('ask for them with include') and an explicit hand-off for example retrieval to docs_get_api_example. It does not state prerequisites, such as needing a path from list_api_operations first, nor when a full spec dump would be better than this per-endpoint call.

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