Skip to main content
Glama
Swagger MCP Server
by Waltu

get_swagger

Retrieve the complete OpenAPI/Swagger specification for a service by its slug, so AI assistants can inspect endpoints, schemas, and API documentation.

Instructions

Get the full OpenAPI/Swagger documentation for a service

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": {
      "slug": "<slug>"
    },
    "name": "get_swagger"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesService slug identifier

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/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, yet it only implies read-only behavior through the verb 'Get'. It says nothing about the response format (JSON vs YAML), the likely size of a 'full' spec, or what happens when a service has no published spec.

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?

It is a single front-loaded sentence with no filler, and the key noun phrase ('full OpenAPI/Swagger documentation') is placed where it can be scanned first. It sits at the edge of being too terse for a tool with no annotations, but nothing in it is wasted.

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 one-parameter retrieval tool with full schema coverage and no output schema, the description covers the essential who/what. The remaining gap is return format and failure behavior for services lacking a spec, which is minor for this level of complexity.

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 single slug parameter is already documented in the schema as a 'Service slug identifier'. The description adds only that the slug identifies the service whose spec is returned, which is the baseline expectation rather than new meaning.

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 names a specific verb (Get) and resource (the full OpenAPI/Swagger documentation) scoped to a service, which is more precise than siblings like get_endpoints or get_schemas. It does not explicitly contrast itself with those siblings, though, so an agent must infer the difference between 'full documentation' and 'schemas'/'endpoints'.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no stated preconditions, and no mention of alternatives such as get_schemas or get_endpoint_details. The agent is left to infer that this tool should be chosen when the raw spec is needed rather than a parsed view.

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