Skip to main content
Glama
reciprocal-ruler-mcp
by hwcho310

Reciprocal Ruler - free trial arithmetic check

ruler_trial_verify_math
Read-only

Compare expected and actual settlement amounts with optional tolerance during a free trial, returning MATCHED, SHORTFALL, or OVERPAID for deterministic arithmetic verification.

Instructions

Free trial of the $0.01 deterministic arithmetic check (up to 3 calls per client across trial tools). Compares expected_amount vs actual_amount with optional tolerance and returns MATCHED, SHORTFALL, or OVERPAID.

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": {
      "expected_amount": "<expected_amount>",
      "actual_amount": "<actual_amount>"
    },
    "name": "ruler_trial_verify_math"
  }
}

Input Schema

NameRequiredDescriptionDefault
currencyNoCurrency code, e.g. KRW or USD.KRW
toleranceNoAllowed rounding/fee tolerance before flagging mismatch.
actual_amountYesActual settled or charged amount.
expected_amountYesExpected settlement or invoice amount.
trial_client_idNoStable id for your agent (X-Trial-Client).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered; the description adds genuinely new behavior: a per-client quota of 3 calls shared across all trial tools, and the exact three result labels returned. It does not say what an over-quota call returns (error vs. billing), which would have completed the picture.

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?

A single dense sentence that front-loads the trial/pricing constraint before the operation and its outputs. Nothing is wasted, though the parenthetical quota clause slightly interrupts the flow of the core purpose statement.

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 no output schema, the description correctly carries the return values (MATCHED/SHORTFALL/OVERPAID), and all five parameters are schema-documented. For a read-only comparison tool this is nearly complete; only the post-quota behavior is unspecified.

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%, so currency, tolerance, both amounts, and trial_client_id are already documented in the schema, making 3 the baseline. The description only echoes the expected/actual comparison and notes tolerance is optional, adding no syntax or edge-case meaning beyond the schema.

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 specific verb and resource — a deterministic arithmetic check comparing expected_amount vs actual_amount — and names the three possible outcomes (MATCHED, SHORTFALL, OVERPAID). The 'free trial' framing plus the call cap also distinguishes it from the paid sibling ruler_verify_math without the agent needing to open either 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?

The 'free trial ... up to 3 calls per client across trial tools' wording tells the agent this is the low-commitment entry point versus the paid sibling, and the quota is explicit. It does not state what to do once the 3-call budget is exhausted (fall back to ruler_verify_math?), which is the one routing question left open.

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