Skip to main content
Glama

get_api_specification

Retrieve the OpenAPI specification and endpoint details, optionally bypassing the 24-hour cache to fetch current API data.

Instructions

Retrieve the OpenAPI specification with endpoint details

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_api_specification"
  }
}

Input Schema

NameRequiredDescriptionDefault
force_refreshNoBypass the 24-hour OpenAPI cache and fetch the latest specification

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.11

TDQS

B3.2/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 disclosure burden. It says nothing about response format beyond "OpenAPI specification", size, versioning, or that the tool is read-only; the 24-hour cache behavior is disclosed only via the parameter schema, not the description.

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 front-loaded sentence with no filler. It is efficient but arguably too terse for the behavioral information an agent needs.

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?

No output schema exists, so the description should say more about what comes back (full spec vs. endpoint list, format, expected size). For a simple read tool with one documented parameter it is adequate but leaves return-value expectations underspecified.

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?

With a single parameter at 100% schema coverage, the schema fully documents force_refresh including the cache bypass semantics. The description adds no meaning beyond it, which is acceptable at this coverage level.

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?

Specific verb ("Retrieve") and resource ("the OpenAPI specification") with a scoping note ("with endpoint details"). It is clearly distinct from siblings like get_auth_token and get_base_url, though it does not explicitly contrast with them.

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?

Usage is only implied by the purpose: fetch the spec when you need the API surface. There is no explicit when-to-use, when-not, or routing to sibling resources such as get_deployment_guide for procedural docs.

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