Skip to main content
Glama

Update a Favorite

update_favorite
Destructive

修改某条收藏的分类、标签或备注(只改你传的字段,没传的保持原样)。需要收藏记录 id,可用 list_favorites 查到。注意这会覆盖原来填的内容,没有历史版本。

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": {
      "id": "<id>"
    },
    "name": "update_favorite"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes收藏记录 id(来自 list_favorites)
noteNo新的备注;传空字符串表示清空
tagsNo新的标签数组(整体替换);传空数组表示清空
categoryNo新的分类;传空字符串表示清空

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Beyond destructiveHint=true, it explicitly warns that the write overwrites the previous content and that there is no version history, which is exactly the risk context an agent needs before mutating. It also discloses partial-update semantics (only submitted fields change). Permission/authentication requirements are not discussed, so it is not a 5.

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?

Three tight clauses with no redundancy, ordered as purpose → required input → destructive caveat, so the most important warning lands before the agent commits.

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

Completeness4/5

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

For a 4-parameter mutation with full schema coverage and no output schema, the description covers what changes, what happens to unmentioned fields, the prerequisite id source, and the irreversibility. Only the response shape and any permission constraints are left implicit.

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 coverage is 100%, so the baseline is 3, and the per-field semantics (empty string/array clears) are already documented in the schema. The description does add the useful PATCH-style rule that unspecified fields stay unchanged, but that is a modest increment over structured data.

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 first sentence names a specific verb (修改) and resource (某条收藏) plus the exact mutable fields (分类、标签、备注), so the agent can distinguish it from add_favorite/remove_favorite. It doesn't explicitly contrast itself with the sibling mutators, which keeps it short of a 5.

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?

It states the prerequisite (需要收藏记录 id) and where to obtain it (可用 list_favorites 查到), which is actionable routing guidance. It does not say when to use add_favorite or remove_favorite instead, so it stops short of full alternative coverage.

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.