Skip to main content
Glama
geniyangge

api-docs-mcp-server

by geniyangge

获取接口详情

get-api-detail

Fetch API endpoint details by method and path: parameters, request body, response structure, with $ref references resolved and cycles marked. Quickly inspect the full interface contract.

Instructions

按 method + path 返回接口完整详情:参数、请求体、响应结构,所有 $ref 引用(数据模型)已递归展开,循环引用会标记为 $ref-cycle。参数:source 同上;method HTTP 方法(如 GET/POST);path 接口路径,需与文档完全一致(可先用 search-apis 查询)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes接口路径,需与文档完全一致(可先用 search-apis 查询)
methodYesHTTP 方法,如 GET/POST
sourceNoSwagger/OpenAPI 文档的 URL(http/https)或本地文件路径(.json/.yaml/.yml);不传时使用服务端配置的默认文档
Behavior4/5

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

With no annotations provided, the description carries the full burden and delivers: it discloses the non-obvious behaviors of recursive $ref expansion and circular-reference marking ($ref-cycle), which go beyond what annotations or schema could convey. It doesn't cover error cases or auth, but for a read-only detail fetch, this is solid behavioral disclosure.

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 a compact paragraph with a front-loaded purpose statement followed by parameter clarifications, earning its space. The odd 'source 同上' (same as above) reference is confusing without external context, slightly marring an otherwise efficient structure.

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 3-parameter tool with no output schema and no annotations, the description covers the essential ground: return contents, expansion behavior, cycle handling, and exact-match requirements. While it could note error behavior for non-existent paths, and the lack of annotations in the context, the description is adequate for an agent to invoke this tool effectively.

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 is 3 with the schema doing the heavy lifting. The description restates the parameters in prose and adds the 'path must exactly match' caveat, but this mirrors the schema text. The description's value-add lies in return semantics rather than parameter meaning, so no score above baseline is warranted.

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 uses a specific verb+resource structure ('按 method + path 返回接口完整详情' - returns complete API details by method + path), enumerating return contents (parameters, request body, response structure) and explicitly noting the recursive $ref expansion behavior. This $ref-cycle detail meaningfully distinguishes it from siblings like get-openapi-spec and search-apis.

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 gives practical usage context by noting the path must exactly match and directing users to query with search-apis first ('可先用 search-apis 查询'). It provides clear context for the workflow, though it lacks explicit exclusions or direct comparison against get-spec-overview/get-openapi-spec siblings.

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/geniyangge/api-docs-mcp-server'

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