Skip to main content
Glama
anuoua

swagger-doc-explorer-mcp

by anuoua

Get API Info

swagger_get_info
Read-onlyIdempotent

Retrieve a high-level summary of a loaded OpenAPI/Swagger spec, including title, version, description, base URL, and counts of endpoints, schemas, and tags.

Instructions

Get general information about a loaded OpenAPI/Swagger specification, including title, version, description, server URL, contact info, and license.

Use this tool to get a high-level summary of an API spec.

Args:

  • spec_name (string): Name of the previously loaded spec (use swagger_list_loaded to see available names)

Returns: { "title": string, // API title "version": string, // API version "description": string, // API description "server_url": string, // Base server URL "endpoints": number, // Total endpoint count "schemas": number, // Total schema count "tags": number, // Total tag count "openapi_version": string // OpenAPI spec version }

Examples:

  • Use when: "Tell me about this API" -> params with spec_name=""

  • Use when: "What's the base URL for this API?" -> params with spec_name=""

Error Handling:

  • Returns error if the spec name has not been loaded

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
spec_nameYesName of the previously loaded OpenAPI/Swagger spec (use swagger_list_loaded to see available names)
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, and the description adds an Error Handling section stating that an error is returned if the spec name has not been loaded. It also provides the full return structure. No contradiction with annotations.

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?

The description is well-organized into Args, Returns, Examples, and Error Handling sections, with the main purpose stated first. It is slightly verbose for a one-parameter tool, but every section earns its place by providing concrete guidance and examples.

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

Completeness5/5

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

For a simple read-only info tool, the description covers purpose, return format, parameter prerequisite, and error behavior. The annotations cover the safety profile. Given the tool's low complexity, there are no significant gaps.

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?

The single parameter `spec_name` is fully described in the schema (100% coverage), and the description's Args section repeats the schema description verbatim, adding no new semantic meaning. Baseline 3 is appropriate because the schema does the heavy lifting.

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 opens with a specific verb+resource ('Get general information about a loaded OpenAPI/Swagger specification') and lists key fields, clearly distinguishing it from sibling tools that drill into endpoints, schemas, or paths. The phrase 'high-level summary' reinforces its distinct role.

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?

It explicitly states 'Use this tool to get a high-level summary of an API spec' and provides two example user intents ('Tell me about this API', 'What's the base URL'). It also links to the sibling tool `swagger_list_loaded` for finding available spec names. However, it does not mention alternatives for endpoint-specific info or explicitly say when not to use it, so a 4 rather than 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/anuoua/swagger-doc-explorer-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server