Skip to main content
Glama

describe_operation

Describe one API operation from an OpenAPI spec, showing merged path/operation parameters, request body, and all responses with resolved schemas in a compact, depth-limited outline.

Instructions

Describe one operation: parameters (merged path-level + operation-level), the request body and every response with their schemas fully resolved and shown as a compact outline (* = required property, ? = nullable, recursive schemas end in a <cycle: Name> marker). path may use any parameter names (/pets/{id} matches /pets/{petId}). depth limits the outline nesting (1-12).

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

Input Schema

NameRequiredDescriptionDefault
pathYes
specYes
depthNo
methodYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden of behavioral disclosure, and it leaves key unknowns: it never states what 'spec' is (file path, id, or raw content), what happens if the operation is not found, or whether the method is case-sensitive. It does usefully disclose that schemas are fully resolved and explains the outline legend (`*`, `?`, `<cycle: Name>`), which is genuine added context.

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?

A single dense passage that front-loads the purpose and then layers on the output notation and parameter notes, with no filler sentences. It is information-rich per word, though slightly cramped for the amount of legend detail it packs in.

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

Completeness3/5

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

An output schema exists, so the return shape need not be explained, and the tool is conceptually simple. Still, the missing semantics for 'spec' and 'method' plus absent error behavior leave gaps an agent would have to guess at before a first call.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must document all four parameters itself. It explains 'path' (any parameter name matches, e.g. /pets/{id} matches /pets/{petId}) and 'depth' (limits nesting, range 1-12), but 'spec' and 'method' receive no explanation at all in either the schema or the description, and 'spec' is the most consequential input.

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?

The description uses a specific verb and resource — 'Describe one operation' — and itemizes exactly what is returned: parameters merged from path and operation level, the request body, and every response with resolved schemas. That scope implicitly and clearly separates it from overview-style siblings such as spec_overview or find_endpoints.

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

Usage Guidelines3/5

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

There is no explicit when-to-use or when-not-to-use guidance and no named alternative; the intended use (inspecting a single endpoint in detail) is only implied by the description's wording. It does, however, give a practical usage rule for the path argument, which partially compensates.

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