Skip to main content
Glama

Record the payment

purch_record_bill_payment
Destructive

Record that a bill was paid, after the fact: the day it went, how, and the statement row that shows it when there is one. Only after the person paid it, and only with the day it actually went. An agent records payments for approved bills only; a person recording one approves it in the same act. Link the statement row (transaction_id) when the payment is on an imported statement: the amount and currency must match and it must be money out. An unreviewed row is reviewed as the bill says (purchase, its category and vendor), because the bill is the person's word for what it was. Effects: bill marked paid; statement row linked and reviewed when given.

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": {
      "bill_id": "<bill_id>",
      "paid_at": "<paid_at>"
    },
    "name": "purch_record_bill_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
methodNoHow it was paid.
bill_idYesThe bill, e.g. B-0001.
paid_atYesThe day it was paid. ISO date, YYYY-MM-DD.
referenceNoThe bank's or the vendor's reference, if any.
transaction_idNoThe statement row that shows the payment, e.g. T-0042.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=false; the description adds genuine behavioral context via an explicit 'Effects' clause (bill marked paid, statement row linked and reviewed) and the side effect that an unreviewed row is categorized as the bill says. It does not explain why the operation is destructive or whether it can be undone / what happens if the bill is already paid.

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 core action and preconditions, then constraints, then effects — a sensible ordering. Slightly flowery clauses ('because the bill is the person's word for what it was') add tone but marginal operational value.

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 5-parameter mutation with no output schema, it covers preconditions, matching constraints, and resulting state changes, which is close to complete. Remaining gaps are failure behavior and duplicate/already-paid handling, which an agent would want before calling a non-idempotent destructive write.

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 is 3, but the description adds real constraints beyond the schema: transaction_id must match the amount and currency and must be money out, and paid_at must be the day it actually went rather than a scheduled date. This meaningfully upgrades the transaction_id and paid_at parameters.

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 ('Record that a bill was paid') and pins the scope to after-the-fact recording of an already-paid bill. The distinction from approval-oriented siblings (purch_approve_bill) is carried in 'an agent records payments for approved bills only; a person recording one approves it in the same act.'

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?

Explicit when-to-use conditions: only after the person paid it, only with the day it actually went, and only for approved bills. It also gives a conditional rule for the alternative path — link transaction_id when the payment is on an imported statement, with matching amount/currency and money-out direction.

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.