Skip to main content
Glama

查询 Swagger 接口分类

get_api_category
Read-onlyIdempotent

Query API endpoints by exact category name from a Swagger documentation URL. Returns summaries or complete schemas with pagination.

Instructions

按精确分类名实时查询接口。summary 返回摘要,full 返回请求和递归响应 schema。回答用户时必须明确保留 sourceNotice。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo页码,从 1 开始
groupNo多分组文档的精确分组名;只有一个分组时可省略
docsUrlYes本次要查询的 doc.html 或 Swagger JSON 完整地址
categoryYesSwagger tags 中的精确分类名
pageSizeNo每页数量,最大 100
detailLevelNo返回摘要或完整接口文档summary
Behavior4/5

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

Annotations declare readOnlyHint=true, destructiveHint=false, etc. The description adds real-time behavior, exact matching, and a retention notice for sourceNotice, providing useful context beyond 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 short (two sentences) and efficiently conveys the tool's purpose. It could be slightly more structured but is concise and front-loaded.

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

Completeness3/5

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

With no output schema, the description omits return value details beyond summary/full. It notes sourceNotice retention, but a more detailed explanation of response structure would improve completeness for a tool with 6 parameters.

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% (all 6 parameters described). The description adds that 'summary' returns abstracts and 'full' returns request/response schemas, enhancing clarity beyond the schema's enum values.

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 the tool queries APIs by exact category name in real-time, with two detail levels (summary/full). It effectively distinguishes itself from sibling tools like list_api_categories and get_api_by_path.

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

Usage Guidelines3/5

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

The description mentions real-time querying and detail levels but does not provide explicit guidance on when to use this tool compared to alternatives like search_apis. No exclusions or prerequisites are mentioned.

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/qipeijun/swagger-docs-mcp'

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