Skip to main content
Glama

plan.create

plan_create

[需要登录] 创建体检方案:按乙方项目规则校验客户端选择的项目并保存,返回 planId、vendorId、issues;name、summary 可选传入并返回;能查到注意事项时同时返回 caution,caution 已转换为面向 agent 的结构。itemIds 必须来自 vendor_items 返回的 items[].id;女性必须传 marital(married/unmarried),男性可不传;校验失败时返回 issues,不返回 planId。返回 caution 时,必须在调用 reservation.book 之前向用户展示与本次项目相关的注意事项,按 duration 从早到晚动态组织时间线,不套固定天数分组,重点提示空腹、停药、禁忌时间窗。

鉴权:需要用户登录令牌,或已经绑定用户的云市场实例凭证。未登录调用返回 401;云市场实例未绑定用户时返回 code=40003 和 data.bindUrl。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "vendorId": "<vendorId>",
      "itemIds": "<itemIds>",
      "gender": "<gender>"
    },
    "name": "plan_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
genderYes
itemIdsYes
maritalNo
summaryNo
vendorIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the auth requirement, the 401 outcome, the cloud-marketplace unbound case (code=40003 with data.bindUrl), and that validation failures return issues instead of a planId. It falls short of 5 only because it does not say whether a failed validation persists anything or how the caution structure is shaped.

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 purpose and login tag are front-loaded, and the paragraph is dense with operational detail rather than filler. It is long, but nearly every clause carries a constraint the agent needs; the auth paragraph is properly separated from the workflow.

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

Completeness5/5

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

For a six-parameter mutation with no annotations and no output schema, the definition covers auth, error codes, validation-failure behavior, return fields, and the agent-facing obligation around caution. Nothing material is missing for correct invocation.

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 0%, so the description must compensate; it explains itemIds' provenance, marital's conditional requirement plus its allowed values (married/unmarried), and that name/summary are optional and echoed back. gender's accepted values and vendorId's format remain undefined, which keeps it from a 5.

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 opening clause states a specific verb and resource (创建体检方案), then names the validation-and-save flow and the exact return fields (planId, vendorId, issues). An agent can distinguish this from vendor_items (source of item ids) and reservation_book (the downstream booking step) without opening any schema.

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

Usage Guidelines5/5

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

Explicit sequencing is given: itemIds must come from vendor_items items[].id, and when caution is returned it must be shown to the user before calling reservation.book. Required-vs-optional conditional rules (female must pass marital, male need not) and the failure branch (issues without planId) leave little to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources