Skip to main content
Glama
anuoua

swagger-doc-explorer-mcp

by anuoua

Get Endpoint Details

swagger_get_endpoint
Read-onlyIdempotent

Get detailed information about a specific API endpoint, including parameters, request body, responses, and security requirements. Specify spec name, path, and method.

Instructions

Get detailed information about a specific API endpoint, including parameters, request body, responses, and security requirements.

Use this tool after swagger_list_paths to drill down into a specific endpoint's complete details.

Args:

  • spec_name (string): Name of the previously loaded spec

  • path (string): URL path of the endpoint (e.g., "/pets/{petId}")

  • method (string): HTTP method (get, post, put, patch, delete, options, head)

Returns: Full endpoint details with parameters, request body, responses, and security.

Examples:

  • Use when: "Show me the details of GET /pets/{petId}" -> params with spec_name="", path="/pets/{petId}", method="get"

  • Use when: "What parameters does the create user endpoint take?" -> params with spec_name="", path="/users", method="post"

Error Handling:

  • Returns error if the spec name has not been loaded

  • Returns error if the path or method is not found, with suggestions

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesURL path of the endpoint (e.g., '/pets/{petId}', '/users', '/store/order'). Must start with '/'.
methodYesHTTP method (get, post, put, patch, delete, options, head)
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, idempotentHint=true, and destructiveHint=false, so the safety profile is known. The description adds useful behavioral context about error handling: it returns errors if the spec is not loaded or if the path/method is not found, with suggestions. This goes beyond the annotations and helps the agent anticipate failure modes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-organized into clear sections: purpose, usage context, Args, Returns, Examples, and Error Handling. It is front-loaded with the main purpose, and every section provides necessary information without unnecessary flourish. The length is justified by the richness of detail, making it easy to scan.

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?

With 3 required parameters, no output schema, and moderate complexity, the description covers all necessary context: what the tool returns, when to use it, examples of concrete usage, and error handling. It also notes the prerequisite that a spec must be loaded, which is essential for the tool to function. Overall, it gives the agent a complete picture.

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

Parameters4/5

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

Schema coverage is 100% and every parameter has a description in the schema, so the baseline is 3. The description adds value by repeating parameter definitions in an Args section and, more importantly, by providing examples that show how to map natural language requests to spec_name, path, and method. These examples clarify parameter usage beyond the schema.

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 clearly states the tool 'gets detailed information about a specific API endpoint' including parameters, request body, responses, and security. It distinguishes from swagger_list_paths by mentioning it is used after listing paths, but does not differentiate from the closely named sibling swagger_get_endpoint_full, which could confuse an agent selecting between the two.

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?

The description explicitly says to use this tool after swagger_list_paths to drill down into a specific endpoint's complete details. It provides concrete examples of user intents and parameter mapping. However, it does not mention any alternatives or when NOT to use this tool (e.g., when swagger_get_endpoint_full would be more appropriate), so it lacks explicit exclusions.

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