Skip to main content
Glama

保存用户要求为预设

save_requirement

Save user-confirmed behavioral requirements as reusable presets, checking for semantic conflicts with existing presets to prevent contradictory rules.

Instructions

把用户确认过的可复用要求保存为预设。调用前必须已向用户展示提炼表述+建议分类并获明确同意(弹框通道下服务器会再次弹框担保,超时不保存)。单次指令不入库。返回 potential_conflicts=同作用域/分类的既有预设——检查语义矛盾,矛盾则提议更新旧预设而非新增。user_notice 原样转述。Save a user-confirmed durable requirement.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
riskNo风险档(由你提议,随保存确认一并经用户认可):harmless=无坏后果的偏好(语言/格式类),保存确认一次后免复核弹框;normal=默认,走信任曲线+批量勾选框复核;sensitive=涉及破坏性操作/安全/凭据等,始终单条强确认框
contentYes要求内容,简洁的指令式表述
projectNo限定项目名;不传 = 不限
categoryNo自由分类标签
task_typeNo限定任务类型(自由文本);不传 = 不限
confirm_policyNosmart=信任曲线调度复核(默认);always_ask=每次都问;always_auto=永不复核(仅用户明确要求时)
unattended_policyNo无人值守裁决:by_trust=按信任值(默认);apply=保护性约束建议用(跳过比应用更危险时);skip=保守跳过

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4.1/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses important traits: the dialog channel triggers another server-side confirmation, timeout means no save, and the tool returns potential_conflicts while passing through user_notice verbatim. It also clarifies that semantic conflicts should be handled by proposing an update to the old preset rather than creating a new one.

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 description front-loads the core purpose and the required precondition, then adds output semantics in compact clauses. The final English sentence is slightly redundant with the opening Chinese sentence, but it does not bloat the description. Overall it is appropriately sized and structured.

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?

Because there is no output schema, the description explicitly explains the return value potential_conflicts and the user_notice passthrough, which an agent needs to decide how to handle conflicts. It also covers timeout/no-save behavior and the single-instruction exclusion. For a 7-parameter tool with no annotations, this is sufficient to invoke it correctly.

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 100%, so the baseline is 3, but the description adds meaning to content and category by requiring that they be the refined expression and suggested category shown to and agreed by the user. It also reinforces how consent and risk/confirmation policies interlock. This is genuine extra semantics beyond the schema's field descriptions.

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 opens with a concrete action—"把用户确认过的可复用要求保存为预设"—and clearly identifies the resource as a user-confirmed durable requirement. It also adds a scope exclusion: single-use instructions are not stored. It does not explicitly name sibling tools, so differentiation relies on the preset concept rather than an explicit pointer.

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

Usage Guidelines4/5

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

The description states a hard precondition: the user must have seen the refined wording and suggested category and explicitly agreed, with a timeout causing no save. The "单次指令不入库" sentence signals a when-not condition. It does not recommend a specific alternative for single-use instructions, so it stops short of full alternative guidance.

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