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
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| gender | Yes | ||
| itemIds | Yes | ||
| marital | No | ||
| summary | No | ||
| vendorId | Yes |