Skip to main content
Glama

yapi_interface_save

Save API interfaces to YAPI documentation by creating new entries or updating existing ones with details like endpoints, methods, parameters, and descriptions.

Instructions

保存接口(新增或更新)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoYAPI 接口页面 URL(可选),如 https://yapi.xxx.com/project/1009/interface/api/108375,会自动解析出项目 ID、接口 ID 等参数
projectNo项目 ID(可选,不传则使用默认项目)
catidYes接口分类 ID
idNo接口 ID(更新时必填)
titleYes接口名称
pathYes接口路径
methodYes请求方法
descNo接口描述
statusNo接口状态
req_paramsNo路径参数
req_queryNo查询参数
req_headersNo请求头
req_body_typeNo请求体类型
req_body_formNo表单请求体
req_body_otherNo其他请求体
res_body_typeNo返回数据类型
res_bodyNo返回数据
Behavior2/5

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

No annotations are provided, so the description carries full burden for behavioral disclosure. While '保存接口(新增或更新)' implies a write/mutation operation, it doesn't specify authentication requirements, whether the operation is idempotent, what happens on conflicts, error conditions, or response format. For a complex mutation tool with 17 parameters, this leaves significant behavioral gaps.

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 extremely concise - just four Chinese characters plus parentheses. It's front-loaded with the core action. While perhaps too brief for such a complex tool, every word earns its place by conveying the dual create/update capability efficiently.

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?

For a complex mutation tool with 17 parameters, no annotations, and no output schema, the description is inadequate. It doesn't address behavioral aspects like permissions, side effects, or response format. While the schema documents parameters well, the description fails to provide the contextual completeness needed for safe and effective use of this significant operation.

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%, meaning all parameters are documented in the schema itself. The description adds no additional parameter semantics beyond the basic 'save interface' concept. It doesn't explain how parameters like 'url' interact with others, or clarify the conditional logic for 'id' (required for updates). With high schema coverage, the baseline score of 3 is appropriate.

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 '保存接口(新增或更新)' translates to 'Save interface (add or update)', which provides a basic verb+resource combination. It indicates the tool can either create new interfaces or update existing ones. However, it doesn't distinguish this tool from sibling tools like 'yapi_interface_add' (which presumably only adds) or 'yapi_interface_up' (which presumably only updates), leaving the purpose somewhat vague.

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?

The description provides no guidance on when to use this tool versus alternatives. With sibling tools like 'yapi_interface_add' and 'yapi_interface_up' available, there's no indication whether this tool should be preferred for certain scenarios, whether it handles both operations conditionally, or what prerequisites might exist. The agent receives no usage context.

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