Skip to main content
Glama

Check a sentence against a figure's contract

check_claim_contract
Read-onlyIdempotent

Checks a proposed statement of a FinanceRateCalc figure against that figure's published use contract, so the sentence can be verified before it is written. Two input modes. (A) Flags: claim id plus the use you propose (population, period, scope, cause, individual prediction, lender recommendation, legal conclusion). (B) Sentence: claim id plus proposed_sentence, the exact sentence you intend to write; the tool checks it with fixed patterns, no model, for a missing period, missing program scope, a population wider than the claim, second-person prediction, causal wording, lender advice, legal conclusions, and values this publisher has since corrected. Returns a deterministic verdict: pass, needs_qualifier (naming the missing qualifier) or block (with a reason code), plus a safe sentence you may use verbatim and the required attribution. Most misuse of these statistics is omission, not invention: the number is right and the population is missing. NOT FOR: figures published by anyone other than FinanceRateCalc. (C) Rule sentence: passport_id of a rule file (frc:rule:…, six rule files: FHA annual MIP, FHA forward loan limits 2026, FHFA conforming limits 2026, CFPB HOEPA/QM thresholds 2026, VA funding fee, and the Fannie Mae DU minimum credit score requirement removed 2025-11-16) plus proposed_sentence; each dollar or percent figure is bound to the role named in its own clause (floor or ceiling, tier, first or subsequent use, threshold item) and compared with that cell, so a right number under the wrong role is a mismatch and an unbound number earns no receipt; every figure is also classified as current, superseded (STALE_VALUE), belonging to a different rule (VALUE_FROM_OTHER_RULE, e.g. the $726,200 MIP threshold quoted as a loan limit), or not in the table (VALUE_MISMATCH / UNVERIFIED_VALUE); the year, units, tier, use, down-payment band and stated dates are checked (a date before the rule's start blocks; a missing MIP case date is never assumed), and a passing sentence with at least one bound figure returns a verifiable rule receipt.

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": {
      "passport_id": "<passport_id>"
    },
    "name": "check_claim_contract"
  }
}

Input Schema

NameRequiredDescriptionDefault
passport_idYes
causal_assertionNo
legal_conclusionNo
proposed_sentenceNoThe exact sentence you intend to write. Checked with fixed patterns; no model.
qualifier_droppedNo
attribution_presentNo
individual_predictionNo
scope_beyond_universeNo
personalized_recommendationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / proposed_sentence
      Added value: +{
      +  "description": "The exact sentence you intend to write. Checked with fixed patterns; no model.",
      +  "type": "string"
      +}
  2. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare a safe, read-only, idempotent, closed-world check, and the description adds substantial context beyond them: a deterministic no-model check, fixed pattern categories, three verdict values, reason codes, a returned safe sentence and attribution, and rule receipts. It stops short of saying how long checks take or whether verdicts are cached, and it calls the required key a 'claim id' while the schema names it passport_id.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded in the first sentence, but the body is a dense wall of text with multi-clause run-ons, and the 'NOT FOR' exclusion is wedged in before mode (C), breaking the A/B/C structure. Nearly every clause carries information, yet the reader has to parse rather than scan.

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?

For a nine-parameter tool with no output schema, the description does the heavy lifting: it names the verdict values, the reason-code categories, the safe sentence, attribution and the rule receipt, and lists the six covered rule files. What is missing is the flag-level mapping needed to fill mode (A) correctly.

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 11%, so the description must carry the load. It does explain passport_id in two senses (claim id, or an frc:rule: passport) and proposed_sentence precisely, and it gestures at mode-A flags such as cause, individual prediction, lender recommendation and legal conclusion. But it never accounts for qualifier_dropped or attribution_present, and the flag list does not map cleanly onto the seven booleans, leaving half the parameters to guesswork.

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 opening sentence names a specific verb and resource ('Checks a proposed statement ... against that figure's published use contract') and states the goal ('verified before it is written'). It also scopes what the tool is not for ('figures published by anyone other than FinanceRateCalc'), so an agent can separate it from retrieval siblings like get_official_figure.

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 gives clear conditions for use (verify a sentence before writing it) and three distinct input modes with the selector for each (flags vs. proposed_sentence vs. rule passport_id). The 'NOT FOR' exclusion adds a real boundary, but it never routes the agent to a specific alternative for obtaining the figure or rule in the first place.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.