Skip to main content
Glama

Unmatch receipt

purch_unmatch_receipt
Destructive

Detach a receipt from its transaction, with a reason. A match was a reasoned act; undoing it is one too. The receipt goes back to unmatched, a visible state, and the reason stays on the record. Use it when the person says the receipt belongs to a different row or card — then match again. Effects: receipt unmatched.

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": {
      "receipt_id": "<receipt_id>",
      "reason": "<reason>"
    },
    "name": "purch_unmatch_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesWhy.
receipt_idYesThe receipt.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is covered. The description adds genuinely new behavioral context: the resulting state ("the receipt goes back to unmatched, a visible state") and that the reason persists on the record, which tells the agent the undo is audited rather than silent.

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 action, and the usage condition follows immediately. The aphorism "A match was a reasoned act; undoing it is one too" is charming but partly decorative, and the trailing "Effects: receipt unmatched." restates the opening sentence.

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 two-parameter mutation with no output schema, the description covers precondition, resulting state, and next step. It omits failure modes — e.g. what happens when the receipt is not currently matched — which is the only material gap.

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 both parameters are documented, and the description reinforces that reason is mandatory rather than optional. It adds no detail about what constitutes a valid receipt_id or whether an unmatched receipt raises an error, so it does not exceed the baseline set by 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 — "Detach a receipt from its transaction" — plus the required accompaniment ("with a reason"). The follow-up clause about the receipt belonging to a different row or card implicitly names the counterpart operation (purch_match_receipt), so an agent can route between match and unmatch without opening schemas.

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?

Gives an explicit triggering condition — use it when the person says the receipt belongs to a different row or card — and names the follow-up action ("then match again"). It stops short of stating when NOT to use it or explicitly naming purch_match_receipt as the counterpart tool, so it is strong but not exhaustive.

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.