Skip to main content
Glama

update_mistake

Partially updates a saved wrong-answer record by changing only the supplied fields and preserving all other mistake-bank details.

Instructions

局部修改错题(只改传入的字段,其它保持不变)。

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": {
      "mistake_id": "<mistake_id>"
    },
    "name": "update_mistake"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNo新标签列表,会整体替换(传 [] 表示清空)
notesNo新备注
stateNo新状态
topicNo新知识点
answerNo新答案
sourceNo新来源
subjectNo新学科
questionNo新题干
my_answerNo新错误答案
difficultyNo新难度 1-5
mistake_idYes错题 id
error_reasonNo新错因

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.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 disclosure burden. It does disclose the one behavioral trait that matters most for a 12-parameter mutation: only the passed fields change and everything else is preserved, which prevents an agent from assuming a full overwrite. It omits what happens if mistake_id does not match and whether null values are treated as no-ops or as clearing a field.

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?

One front-loaded sentence with no wasted words, and the PATCH-semantics clause sits in the most useful position. It could carry one more clarifying sentence without hurting readability.

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?

A 12-parameter mutation tool with no annotations and no output schema leaves the description to explain what happens on failure and what the response contains, and it covers neither. More critically, because every field is nullable with a default of null, the agent cannot tell from the description whether explicitly passing null clears a field or leaves it unchanged. The description is adequate but leaves a real ambiguity unresolved for a tool of this complexity.

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 description coverage is 100%, so the schema already explains all 12 parameters, including the overall-replace semantics for tags. The description's claim that only passed fields are changed reinforces the nullable and default semantics, but it adds no per-parameter detail, such as the difficulty range or what the valid states are, beyond what the schema provides. The baseline of 3 is appropriate.

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?

States a specific verb and resource: 局部修改 (partial update) on 错题 (mistake record), which is clearly distinct from siblings such as add_mistake, delete_mistake, and get_mistake. It stops short of naming any sibling explicitly, so it is clear rather than differentiating.

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

Usage Guidelines3/5

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

The phrase 局部修改 implies the intended use case (changing some fields on an existing mistake), but the description never says when to choose this over add_mistake or delete_mistake, nor does it state prerequisites (for example, whether the record must already exist). Usage is implied rather than spelled out.

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