Skip to main content
Glama

yapi_create_interface

Define YApi API endpoints with request/response bodies, headers, parameters, tags, and status, enabling AI clients to create complete interface definitions.

Instructions

创建 YApi 接口,支持请求参数、请求体、响应体、状态和标签

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes接口路径
tagsNo接口标签
titleYes接口标题
methodYesHTTP 方法
statusNo接口状态
messageNo本次修改说明
markdownNoMarkdown 格式的接口说明
apiOpenedNo是否允许公开访问
projectIdYes项目 ID
categoryIdYes分类 ID
pathParamsNoPath 参数
descriptionNo接口描述
requestBodyNoJSON、文本或 XML 请求体;JSON Schema 也以字符串传入
requestFormNoform 请求参数
requestQueryNoQuery 参数
responseBodyNo响应示例或 JSON Schema,以字符串传入
requestHeadersNo请求 Header
requestBodyTypeNo请求体类型
responseBodyTypeNo响应体类型
requestBodyIsJsonSchemaNo请求体是否为 JSON Schema
responseBodyIsJsonSchemaNo响应体是否为 JSON Schema

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the agent knows this is a non-destructive write operation. The description adds a list of supported features but does not disclose additional behavioral traits such as permissions required, side effects, or idempotency. Since annotations cover the basic safety profile, the description provides marginal extra context.

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

Conciseness5/5

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

The description is a single, front-loaded sentence with zero wasted words. It immediately states the primary action and lists the key supported facets. This is an excellent example of conciseness.

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 tool with 21 parameters and 5 required ones, the description is extremely sparse. It does not highlight required fields, provide examples, or explain how to structure the request. While an output schema exists, the description lacks crucial orientation an agent needs to correctly invoke this complex tool. The minimalism leaves major gaps.

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 every parameter has a description in the schema. The tool description lists categories (request parameters, body, response, status, tags) but does not add meaning to individual parameters beyond what the schema already documents. Baseline 3 is appropriate when the schema does the heavy lifting.

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

Purpose4/5

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

The description states a clear verb ('创建' = create) and resource ('YApi 接口' = YApi interface), and lists supported aspects (request parameters, body, response, status, tags). It is unambiguous and distinct from sibling tools like yapi_update_interface, though it does not explicitly name alternatives.

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?

There is no guidance on when to use this tool versus alternatives. No mention of prerequisites, conditions that favor this over yapi_update_interface, or any exclusions. The description only states what it does, not when to use it.

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

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