Skip to main content
Glama

add_mistake

Record a new wrong answer with question, answer, error reason, and tags into the mistake bank, returning the saved entry with its ID and next review time.

Instructions

记录一道新错题。返回入库后的完整记录(含 id 和下次复习时间)。

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": {
      "question": "<question>"
    },
    "name": "add_mistake"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNo标签列表,如 ["求导","复合函数"]
notesNo自由备注/心得
topicNo知识点,如 导数 / 指针 / 时态
answerNo正确答案或解析
sourceNo来源,如 "2023 期中卷第 12 题"
subjectNo学科,如 maths / english / cgeneral
questionYes题干/原题,必填
my_answerNo当时写错的答案,方便日后对比
difficultyNo难度 1-5,默认 3
error_reasonNo错因,可选 concept(概念不清) careless(粗心) calculation(算错) reading(审题) method(方法) time(超时) unknown;也接受中文

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose the post-insert return value (full record with id and next review time), which reveals a side effect of scheduling a review, but it says nothing about duplicate handling, required permissions, or what happens to the other nine optional fields when omitted.

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?

Two short sentences with zero padding. The action is front-loaded and the return-value note follows immediately, so every sentence earns its place.

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 ten-parameter write tool with no annotations and no output schema, the definition covers the core action and the return shape, and the schema handles field semantics. It stops short of the behavioral context an agent would want for a mutation, such as duplicate detection or the effect of the default review scheduling.

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% and all ten parameters carry their own descriptions including examples and the error_reason value set, so the description need not explain them. It adds no parameter meaning beyond the schema, which is the expected baseline here.

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 states a specific verb and resource: 记录一道新错题 (record one new mistake). The measure word 一道 subtly signals single-record scope, which implicitly distinguishes it from the batch sibling add_mistakes, but the description never names that sibling explicitly, so differentiation is left to inference.

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?

Usage is only implied: the agent can infer this is for adding a new mistake rather than updating an existing one. There is no explicit when-to-use or when-not-to-use guidance and no mention of add_mistakes for bulk inserts or update_mistake for corrections, even though those are the most likely confusions.

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