Skip to main content
Glama

Discard statement

purch_discard_source
Destructive

Throw out one imported statement and every row that came from it, with a reason, so it can be re-read and imported again. A wrong row means a wrong source (P-2): rows are never edited, the statement is discarded and imported again from a fresh read. Receipts matched to its rows go back to unmatched and are listed; vendors, aliases and subscriptions stay — they are the person's words, not the statement's. The hash is free again afterwards. Owner's act, on the record. Effects: source and its transactions deleted; matched receipts unmatched; hash free to import again.

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>",
      "reason": "<reason>"
    },
    "name": "purch_discard_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesWhy — a misread column, the wrong file, a re-read.
source_idYesThe statement, e.g. SRC-0001.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Far exceeds the annotations: it enumerates exactly what is destroyed (the source and its transactions), what is unlinked (matched receipts return to unmatched and are listed), what survives (vendors, aliases, subscriptions), and the durable consequence (hash freed for re-import). It also flags the act as attributable and recorded, which matters for a destructiveHint=true, non-idempotent 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?

Lead sentence is front-loaded and does the heavy lifting; the effect list is easy to scan. Minor waste in the final 'Effects:' sentence, which restates the hash-freed and receipts-unmatched points already made twice.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, non-output-schema mutation, the description covers outcome, side effects, preserved data, and re-import path — everything an agent needs before committing the call.

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 already documented. The description adds only the framing that source_id refers to an imported statement and that the reason is mandatory context for the record — a marginal gain over the schema's own examples.

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?

Names a specific verb (throw out/discard), a precisely scoped resource (one imported statement and every row that came from it), and clarifies that rows are never edited — the statement is re-read instead. That distinguishes it cleanly from purch_import_statement, purch_source, and purch_review_transaction without needing the 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?

States the triggering condition clearly: a wrong row means a wrong source, so discard-and-reimport rather than edit. It implies the correct alternative (re-reading via import) without naming a sibling tool explicitly, and gives no explicit "do not use when" caveat, which keeps it out of 5 territory.

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.