Skip to main content
Glama
justguy

ct-mcp

by justguy

verify_arithmetic

Recompute arithmetic results to validate claimed outcomes for sum, weighted average, percentage, growth, and product, with strict or tolerance-based matching.

Instructions

Verify that a claimed arithmetic result matches the actual computation. Supports: sum, weighted_average, percentage, growth, product.

REQUIRED INPUT FORMAT — copy this structure exactly: {"claim_type":"weighted_average","values":[100,80,60],"weights":[0.5,0.3,0.2],"claimed_result":84}

Claim types and required fields:

  • "sum": values[], claimed_result

  • "weighted_average": values[], weights[], claimed_result

  • "percentage": part, whole, claimed_result

  • "growth": values[] (principal), rate, periods, claimed_result

  • "product": values[], claimed_result

Strict by default — matches to 2 decimal places. Optional "tolerance" for relative tolerance.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
partNoNumerator for "percentage" claim type
rateNoGrowth rate for "growth" claim type
wholeNoDenominator for "percentage" claim type
valuesNoInput values (for sum: addends, for growth: [principal], etc.)
periodsNoNumber of periods for "growth" claim type
weightsNoWeights for weighted_average (same length as values)
toleranceNoOptional relative tolerance (e.g., 0.01 for 1%). Default: strict 2-decimal match.
claim_typeYesType of arithmetic claim to verify
claimed_resultYesThe result being verified
Behavior4/5

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

Although no annotations are provided, the description discloses key behavioral traits: strict default matching to 2 decimal places and the optional 'tolerance' parameter for relative tolerance. It does not mention return format or error behavior, but the disclosed details are valuable and go beyond the schema.

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?

The description is well-structured with a clear example, a bulleted list of claim types and required fields, and concise statements about default strictness and tolerance. Every sentence contributes necessary information without redundancy.

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?

Given the tool's complexity (9 parameters, 5 claim types), the description covers supported operations, required fields per type, and matching behavior. The only notable omission is the return value/output format, but the description is otherwise complete enough for an agent to call the 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?

Schema coverage is 100%, so the baseline is 3. The description adds significant value by specifying which fields are required for each claim_type and providing a concrete example. This clarifies parameter usage beyond the schema's field-level descriptions.

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?

The description clearly states the tool's function: 'Verify that a claimed arithmetic result matches the actual computation.' It lists specific supported claim types (sum, weighted_average, percentage, growth, product), which distinguishes it from sibling tools like check_numeric_claims or validate_confidence that focus on broader validation.

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?

The description provides explicit guidance on how to structure inputs for each claim type, including a required JSON format and per-type field requirements. It does not explicitly contrast with sibling tools, but it offers clear context on when to use this tool (for verifying arithmetic claims) and how to construct calls.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/justguy/Critical-Thinking-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server