Skip to main content
Glama

Record paid back

purch_record_reimbursement
Destructive

Tie money in to the work expenses it paid back. They must add up to it exactly; together they are no longer personal spending. Work expenses are marked when reviewed (reimbursable_by, claim_ref). When the employer or client pays them back, read purch_reimbursements, find the expenses the money covers (often one claim), show the person, and tie them with a reason. The expenses must add up to the money in exactly; if less came back than was claimed, tie the ones it covers and leave the rest waiting. Effects: money in tied to the expenses it paid back; those expenses no longer personal spending.

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": {
      "in_transaction_id": "<in_transaction_id>",
      "expenses": "<expenses>",
      "reason": "<reason>"
    },
    "name": "purch_record_reimbursement"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesWhich claim it was: "expense report 14, October travel".
expensesYesThe expenses it covers.
in_transaction_idYesThe money in that paid them back. An existing purch_transaction id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare write, destructive, non-idempotent, closed-world, so the safety profile is covered; the description adds real value beyond that by spelling out the effects ('those expenses no longer personal spending') and a hard invariant that the expenses must sum exactly to the incoming amount. It does not say what happens on a validation failure or whether the link can be undone, which matters for a destructiveHint=true tool.

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?

The effects statement is front-loaded and the workflow follows logically, with the exact-sum rule placed before the effects. It repeats the exact-sum requirement twice in slightly different words, which adds length without adding information.

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 three-parameter destructive write with no output schema, the description covers the trigger, the discovery step, the validation invariant, and the resulting state change. The notable remaining gap is the escape hatch: nothing tells the agent the operation can be reversed or which tool to use if the wrong expenses were tied.

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, and the description goes beyond it by supplying the cross-parameter constraint that expenses must add up exactly to in_transaction_id, plus the intent of 'reason' as identifying which claim it was. It does not clarify id formats or ordering expectations, but the schema's 'existing purch_transaction id' notes cover most of that.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening line states a specific action on a specific resource: tying an incoming payment ('money in') to the expense transactions it reimburses, and the Effects line restates the concrete outcome. It is distinguishable from the sibling 'purch_reimbursements' (read side) which it explicitly points to. It does not name 'purch_unlink_reimbursement' as the undo counterpart, so it is not fully differentiated from every sibling.

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 a clear trigger ('When the employer or client pays them back'), a prerequisite step (read purch_reimbursements, find the covered expenses), and an explicit partial-payment rule (if less came back than claimed, tie only the covered ones and leave the rest waiting). What is missing is guidance on the reverse operation and on when this is the wrong tool versus the unlink sibling.

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.