Skip to main content
Glama

query_errorbook

Read-onlyIdempotent

Search and filter wrong-answer records by text, subject, verdict, review status, document, or knowledge point; returns paginated question summaries for study review.

Instructions

查当前错题文本,关键词为不区分大小写的字面子串;不匹配内部字段名/ID/旧历史,不支持通配符或Anki语法。可按复核状态、Agent判断、学科、文档ID及单个知识点精确筛选,条件取交集;省略表示全部。默认含已排除题,练习选题宜指定review_status=include。agent_verdict=wrong表示模型判错,不等于用户已纳入;agent_verdict=uncertain也不等于review_status=uncertain。返回分页题干摘要及next_offset;摘要项JSON合计最多12000个UTF-8字节,即使少于limit也须按next_offset继续;不会重新OCR。翻页期间增删改后刷新首页,摘要可能含提示,不在独立作答前展示。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
offsetNo
searchNo
subjectNo
document_idNo
agent_verdictNo
review_statusNo
knowledge_pointNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations: no re-OCR, a 12000-byte cap on the JSON summary set that forces continued paging via next_offset even when results are fewer than limit, and the instruction to refresh the first page after mutations during paging. It also warns that summaries may contain hints that must not be shown before independent answering.

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?

Purpose and matching rules are front-loaded, and nearly every clause adds distinct information (byte cap, pagination, verdict-vs-status distinction). It is dense and semicolon-heavy, but not padded.

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?

Even though an output schema exists, the description usefully documents pagination via next_offset and the byte cap that governs return size, plus the important semantic gap between agent_verdict and review_status. An agent has everything needed to call and page this tool 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?

With 0% schema description coverage the description carries the load and does so well: it explains search matching rules, each filter dimension (review_status, agent_verdict, subject, document_id, knowledge_point), intersection semantics, and null/default meaning. It leaves limit/offset semantics only implicit through the pagination discussion.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource ('查当前错题文本') and immediately defines the matching semantics (case-insensitive literal substring, no internal field names/IDs/old history, no wildcard or Anki syntax). This clearly separates it from siblings like export_errorbook and read_review_queue, which serve different purposes.

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?

Gives actionable when-to-use guidance: filters intersect, omission means 'all', and practice selection should explicitly pass review_status=include since excluded items are included by default. It does not name a sibling alternative for the export/history cases, so it stops short of a full routing rule.

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