Skip to main content
Glama

Trace numbers in an answer to evidence

trace_numbers
Read-only

Checks whether numbers in an answer appear in supplied evidence, allowing rounding and report-preset derivations, to flag untraced values.

Instructions

Checks whether numbers in an answer appear in the supplied evidence, allowing recognized rounding. The report preset can match derived values such as sums, using operands anywhere in the evidence. It cannot check whether the numbers are true, appear in the right sentence, or belong to the right table row. Numbers written as words are not read. Read the per-number statuses and skipped list even when the kit returns 'clean', since it can return that verdict with no numbers checked. With evidence 'North: 12 orders. South: 15 orders.', 'North: 12 orders.' traces, 'North: 13 orders.' is untraced, and 'Total: 27 orders.' is derived as a sum with the report preset.

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": {
      "answer": "<answer>",
      "evidence": "<evidence>"
    },
    "name": "trace_numbers"
  }
}

Input Schema

NameRequiredDescriptionDefault
answerYesThe answer text to check.
optionsNoOptional tracing settings. Omit to use the kit's strict preset.
evidenceYesEvidence as plain text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint annotations, it discloses meaningful behavioral edges: rounding tolerance, sum/derivation matching only under the report preset, no number-word parsing, and the critical caveat that 'clean' can be returned with zero numbers checked. The worked North/South/Total example makes the accept/reject/derive semantics concrete.

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?

Front-loaded with the purpose, then limits, then the clean-verdict warning, then a compact example — a logical order with little waste. The example is long but it earns its place by encoding the derivation rule; only minor tightening is possible.

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?

There is no output schema, yet the description covers the return surface an agent needs ('per-number statuses and skipped list', the 'clean' verdict) and the derivation/rounding rules that govern results. For a three-parameter, nested-options tool this is complete guidance for correct invocation and interpretation.

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 every option is documented in the schema itself, so the baseline is 3. The description adds illustrative meaning for the report preset and derivations via the sum example, but it does not explain options such as signMode, evidenceScale, or maxCandidates beyond what the schema already says.

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?

States a precise verb and object ('Checks whether numbers in an answer appear in the supplied evidence') and immediately scopes it with 'allowing recognized rounding' plus the report-preset derivation behavior. An agent can distinguish this numeric-tracing tool from siblings like corroborate_evidence or check_grounding without opening the schema.

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 a clear triggering context (verifying numbers in an answer against evidence) and spells out what the tool is not for — truth, sentence position, table-row belonging, number-words. It also tells the agent to read per-number statuses even on a 'clean' verdict, which is real usage guidance. It stops short of naming a sibling alternative for the non-numeric cases.

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