Skip to main content
Glama

contact.profile.save

contact_profile_save

[需要登录] 仅在用户明确要求保存或更新长期健康画像时调用;仅推荐方案不得调用。本人不传 contactid,家人必须先解析唯一 contactid,禁止把家人信息写入本人档案。返回更新后的完整画像与 created。本体: contact → Action: profile.save

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

Input Schema

NameRequiredDescriptionDefault
contactIdNo
contactidNo
lifestyleNo
surgeriesNo
medicationsNo
demographicsNo
examinationsNo
measurementsNo
problem_listNo
family_historyNo
allergy_intoleranceNo
preferences_constraintsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/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 declares the login requirement, the exact failure signals (401 unauthenticated, code=40003 with data.bindUrl for unbound marketplace instances), and that the call returns the full updated profile plus `created`. The remaining gap is write semantics — it never says whether the save replaces or merges with the existing profile, or what happens to omitted sections, which matters for a mutation over 12 fields.

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?

Front-loaded with the login flag and the when-to-call constraint, then caller-specific rules, then return value, then a clearly separated auth section. No filler; the only near-redundant line is the "本体: contact → Action: profile.save" tag.

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

Completeness3/5

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

For a 12-parameter mutation with no annotations and no output schema, the definition covers auth, invocation gating, contactid routing, and a return summary — but leaves the payload fields and the replace-vs-merge behavior undefined. An agent could call it correctly in the auth sense yet plausibly destroy existing profile sections.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 12 parameters, so the description must compensate, and it only addresses the contactid case (self vs. family resolution) — useful, especially given the ambiguous duplicate contactId/contactid properties in the schema. The ten health-profile payload fields (lifestyle, surgeries, medications, examinations, problem_list, family_history, etc.) get no meaning, expected shape, or example anywhere.

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?

States a specific verb (save/update) and a specific resource (long-term health profile), and explicitly distinguishes the case from plan recommendation ("仅推荐方案不得调用"), which names the closest sibling concern. An agent can tell this apart from contact_profile_get and plan_recommend without opening either 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?

Gives an explicit trigger (only when the user explicitly asks to save/update a long-term profile), an explicit exclusion (do not call for mere recommendation), and per-caller rules: omit contactid for self, resolve a unique contactid for family members, never write family data into the self profile. When-to-use, when-not, and the alternative are all present.

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