Skip to main content
Glama

log_attempt

Record each question attempt, correct or incorrect, with hints, guesses, timing, and error reasons so weekly reviews can calculate independent completion and first-try accuracy.

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

Input Schema

NameRequiredDescriptionDefault
topicNo知识点,写 "定积分-变上限" 这种;知识网络的边写 "网络-值传递↔指针"
correctNo是否答对,默认 True
guessedNo是否猜对的(猜对不算独立完成)
subjectNo学科,不填则继承单元
unit_idNo所属单元 id,可不填
questionYes题干,必填
first_tryNo是否第一次就答对
hint_levelNo提示级别 0 无提示 / 1 指方向 / 2 关键一步 / 3 完整示范
can_explainNo能否说清理由("会讲"的唯一判据)
duration_msNo作答耗时(毫秒)
error_reasonNo错因 concept/method/calculation/careless/reading

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.7/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 behavioral burden for a write tool. It usefully reveals the downstream consequence — the weekly review's "独立完成率/首次正确率" depend on this data — which explains why fields like guessed, first_try, hint_level and can_explain matter. However, it says nothing about side effects (e.g., whether a wrong answer also creates a mistake record), prerequisites, idempotency, or what the call returns.

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, zero filler: the action and its scope come first, followed by the reason the data matters. Nothing is repeated from the schema and nothing could be cut without losing information.

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 an 11-parameter write tool with no annotations and no output schema, the description is thin: it never says whether logging a wrong attempt auto-creates a mistake entry, how unit_id/subject inheritance behaves, or what comes back. The stated purpose and motive are enough to call it, but not enough to predict its full effects.

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% and each of the 11 parameters carries its own description, including the hint_level 0-3 scale and the error_reason values, so the baseline is 3. The description adds only indirect meaning by tying the record to independence/first-try metrics; it does not explain any parameter directly.

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 concrete verb and resource — logging one question's attempt — and immediately bounds the scope with "对的错的都记" (record both correct and incorrect). It does not name or differentiate against siblings such as add_mistake or record_review, which is the only thing keeping it from 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 gives clear triggering context (after working a question) and pre-empts the most common misuse by clarifying that wrong answers are logged too, not just successes. It stops short of exclusions or naming an alternative tool for the wrong-answer-only case.

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