Skip to main content
Glama

check_exercise

Verify polynomial identities and linear equation solutions using exact rational arithmetic. Checks whether two expressions are equivalent or if a proposed answer solves the equation.

Instructions

精确有理数验算。默认polynomial_identity检查变量x多项式恒等,如2*(x+3)与2x+6。linear_equation检查化简后一元一次方程的唯一解,如expression=2(x+3)=10、proposed_answer=2(答案不带x=)。使用显式*;无解、多解、非线性或变量分母返回待复核。仅验证所给算式,不保证题意/答案匹配或教学效果。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNopolynomial_identity
expressionYes
proposed_answerYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes保存的验算ID,可由练习check_id引用;不证明自然语言题意匹配。
kindYes
scopeYes本次验算覆盖的数学范围与不能证明的事项。
reasonNoneeds_review时说明无法自动验算的原因;通过或不符合时省略。
statusYesequivalent为所选模式下验算通过;not_equivalent为答案不符合;needs_review为超出验算范围或无法解析,不是判错。
expressionYes
proposed_answerYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations the description discloses genuinely useful behavior: no-solution, multiple-solution, non-linear, or variable-denominator cases return "待复核" (pending review), and expressions must use explicit '*'. It does not address the side effects implied by readOnlyHint=false / idempotentHint=false, so the non-read-only nature of the tool remains unexplained.

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?

It is a single dense paragraph with the core purpose front-loaded and no filler; each clause (modes, examples, edge cases, scope) carries information. The density makes it slightly harder to scan, but nothing is wasted.

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?

With an output schema present, return values need not be explained, and the description covers modes, format requirements, edge-case behavior, and scope limits. The main remaining gap is the absence of any mention of side effects, despite readOnlyHint=false.

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?

Schema description coverage is 0%, so the description must carry the params, and it does: it explains both values of `kind` and the default, the `expression` format (explicit '*', with examples), and `proposed_answer` (supplied without 'x=', e.g. 2). This meaningfully compensates for the empty schema documentation.

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 gives a specific verb+resource ("精确有理数验算") and then pins down the two exact verification modes it performs: polynomial identity in variable x and the unique solution of a simplified one-variable linear equation, each with concrete examples. It is clearly understandable in isolation, though it does not explicitly distinguish itself from related sibling tools such as review_practice_attempt or record_practice.

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 when each mode applies (polynomial_identity is the default; linear_equation handles simplified linear equations) and gives worked examples for both. It also adds a scope exclusion – it only verifies the given expression and does not guarantee intent/answer matching or teaching effect – but it does not point to any alternative tool for those other needs.

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