Skip to main content
Glama
aehyok

swagger-codegen-mcp

by aehyok

get_endpoint_detail

Retrieve detailed information for a single API endpoint, including parameters and response definitions. Automatically detects the service from the endpoint path.

Instructions

获取单个API接口的详细信息,包括参数和响应定义。会根据path自动推断对应的服务(如/api/village/...会使用village服务)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesAPI接口路径,如 "/api/village/VillageNursing/GetPageList"
methodYesHTTP方法,如 "get", "post", "put", "delete"
swagger_urlNoSwagger JSON文档的URL(可选,会根据path自动推断服务)
Behavior4/5

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

The description discloses a useful behavioral trait: it automatically infers the corresponding service from the path, with an example. It also states what the response includes (parameters and responses). With no annotations provided, the description carries the burden and adequately signals a read-only 'get' operation without explicit side effects.

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 two sentences long, with the first clearly stating the primary purpose and the second adding an essential behavioral detail. No redundant or excessive information is present.

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?

Given the tool's low complexity and the absence of output schema/annotations, the description covers the essential aspects: what it does, what it returns, and service selection logic. Minor gaps like error behavior are acceptable for this type of retrieval tool.

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 description coverage is 100%, so the baseline per guidelines is 3. The description adds no new parameter meanings beyond the schema, and the auto-inference behavior is already mentioned in the swagger_url parameter description.

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 clearly states it retrieves detailed information for a single API endpoint, including parameter and response definitions. This distinguishes it from sibling tools like list_endpoints and generate_api_code, which serve listing and code generation purposes respectively.

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 intended use case is clear: to fetch details for a specific endpoint identified by path and method. It does not explicitly name alternatives but the context inherently implies this tool is for single-endpoint detail lookup versus listing endpoints or services.

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/aehyok/swagger-codegen-mcp'

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