Skip to main content
Glama

yapi_interface_up

Update API interface details in YAPI documentation by modifying parameters, methods, descriptions, and response formats to maintain accurate API specifications.

Instructions

更新接口

Input Schema

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

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

With no annotations provided, the description fails to disclose any behavioral traits. It doesn't indicate if this is a mutation operation, what permissions are required, whether changes are destructive, or any error handling, leaving the agent with no behavioral context beyond the vague 'update' action.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

While concise with only two characters, this is under-specification rather than effective brevity. The description fails to convey necessary information, making it inefficient and poorly structured for tool selection.

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

Completeness1/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 completely inadequate. It doesn't explain what 'update' entails, success/failure conditions, or how it differs from similar tools, leaving critical gaps for agent understanding.

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 schema fully documents all 17 parameters. The description adds no additional meaning beyond what's in the schema, such as explaining parameter relationships or usage examples. This meets the baseline of 3 when schema coverage is high.

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

Purpose2/5

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

The description '更新接口' (Update interface) is a tautology that merely restates the tool name 'yapi_interface_up' without adding specificity. It doesn't clarify what 'interface' refers to (e.g., API endpoint in YAPI) or distinguish it from sibling tools like 'yapi_interface_save' or 'yapi_interface_add', leaving the purpose vague.

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

Usage Guidelines1/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. It doesn't mention prerequisites, context, or differentiate from siblings like 'yapi_interface_save' or 'yapi_interface_add', making it impossible to determine appropriate usage scenarios.

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