Skip to main content
Glama

Card statement facts

purch_set_card_facts
Destructive

Record what a card statement prints besides its rows: the minimum payment, the payment due date, the credit limit and the purchase rate. Kept as printed; changing them later needs a reason. Pass them with the import when you have the statement (purch_import_statement takes the same fields). Use this for a statement imported without them, or to correct a misread, with a reason. Copy the figures as printed; never work a minimum out from the balance. Effects: card statement facts recorded.

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": {
      "source_id": "<source_id>"
    },
    "name": "purch_set_card_facts"
  }
}

Input Schema

NameRequiredDescriptionDefault
apr_bpNoPurchase rate in basis points, as printed: 2499 means 24.99%.
reasonNoOnly when correcting facts already recorded: why.
source_idYesThe card statement, e.g. SRC-0003. An existing purch_source id.
minimum_dueNoMinimum payment due, as printed. In cents (integer minor units) — 1250 means $12.50.
credit_limitNoCredit limit, as printed. In cents (integer minor units) — 1250 means $12.50.
payment_due_dateNoPayment due date, as printed. ISO date, YYYY-MM-DD.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

The annotations already flag a non-readonly, destructive, non-idempotent write, and the description adds context beyond them: values are 'kept as printed' and mutating them later 'needs a reason'. The data-integrity instruction 'never work a minimum out from the balance' is genuinely useful behavioral guidance. It stops short of saying whether omitted fields are left untouched or cleared, which matters given destructiveHint=true.

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?

Four sentences, front-loaded with what the tool records before the routing advice. The awkward line wrap around 'purch_import_statement takes the same fields' is cosmetic. The trailing 'Effects: card statement facts recorded' is the only low-value fragment, and it is short.

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 six-parameter mutation tool with no output schema, the description covers purpose, alternative, correction workflow, and verbatim-copy discipline. The remaining gap is partial-update semantics — with only source_id required, an agent cannot tell whether omitted facts are preserved or overwritten, which is relevant for a destructive non-idempotent tool.

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 baseline would be 3, but the description adds real meaning: it tells the agent to copy figures verbatim rather than compute them, and it explains that 'reason' is only for correcting facts already recorded — a usage constraint the schema description only partly conveys. It does not clarify semantics of partial payloads (only source_id is required).

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 pair ('record what a card statement prints besides its rows') and enumerates the four facts captured: minimum payment, payment due date, credit limit, purchase rate. It also distinguishes itself from the sibling that does the same job inline ('purch_import_statement takes the same fields'), so an agent can tell them apart without opening 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing rules in both directions: pass the facts with the import when the statement is at hand, and use this tool only when a statement was imported without them or a figure was misread. It also names the precondition for the correction case ('with a reason'), which is the one condition an agent must satisfy to call it legitimately.

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.