Skip to main content
Glama

yapi_interface_add_cat

Create a new category in YAPI API documentation to organize interfaces by project or functionality, specifying name and optional description.

Instructions

新增接口分类

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoYAPI 接口页面 URL(可选),如 https://yapi.xxx.com/project/1009/interface/api/108375,会自动解析出项目 ID、接口 ID 等参数
projectNo项目 ID(可选,不传则使用默认项目)
nameYes分类名称
descNo分类描述(可选)
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. '新增' (add) implies a write/mutation operation, but the description doesn't disclose critical traits: whether this requires authentication, what permissions are needed, if it's idempotent, what happens on duplicate names, or the response format. For a mutation tool with zero annotation coverage, this leaves significant behavioral gaps for the agent.

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 single phrase '新增接口分类' (Add interface category), which is extremely concise and front-loaded with the core action. There's zero waste or redundancy. However, it's arguably too brief for a mutation tool with no annotations, potentially under-specifying critical context, but within the conciseness dimension, it's efficient.

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

Completeness2/5

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

Given the complexity (a mutation tool for adding categories in YAPI), lack of annotations, and no output schema, the description is incomplete. It doesn't explain the return values, error conditions, or system-specific behaviors (e.g., how categories relate to interfaces or projects). The schema covers parameters well, but for a write operation without annotations, more context is needed to guide the agent 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%, with all parameters documented in the input schema (e.g., 'url' for parsing project/interface IDs, 'project' for optional project ID, 'name' for required category name, 'desc' for optional description). The description adds no additional parameter semantics beyond what the schema provides. With high schema coverage, the baseline score of 3 is appropriate as the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description '新增接口分类' (Add interface category) states a clear verb ('新增' - add) and resource ('接口分类' - interface category), providing basic purpose. However, it's vague about what 'interface category' means in the YAPI context and doesn't distinguish from siblings like 'yapi_interface_get_cat_menu' or 'yapi_interface_list_menu' that might involve categories. The description is functional but lacks specificity about the system context.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives. The description doesn't mention prerequisites (e.g., needing a project ID), exclusions, or relationships with sibling tools like 'yapi_interface_add' (for adding interfaces) or 'yapi_interface_get_cat_menu' (for getting category menus). Usage is implied only through the name and parameters, with no explicit context or alternatives stated.

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/zhhbinn/yapi-mcp'

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