Skip to main content
Glama

Simpler.Asia

invoice_payment_delete

DestructiveIdempotent

[REQUIRES APPROVAL] Retires a payment fact row — the only correction lane (payments are append-only; amounts are never edited). If retiring it un-settles the invoice, the reversal itself rolls the status from 'paid' back to 'sent' and clears paid_at. An agent's call parks here for a human to approve in the Simpler UI; a human's call is its own approval. NEXT: invoice_payment_record to re-record the correct amount.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe payment id (invoice_payment_list shows them).
noteNo
methodNo
currencyNo
invoice_idNo
payment_idNoAlias of id.
occurred_atNo
amount_centsNo

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?

Goes well beyond the destructiveHint/idempotentHint annotations by disclosing the cascade: retiring an un-settled payment rolls the invoice status from 'paid' back to 'sent' and clears paid_at. It also explains the approval semantics that differ by caller type — agent calls park for human approval in the Simpler UI while human calls self-approve — which is critical information an agent cannot infer from any structured field.

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?

The approval requirement is bracketed and front-loaded, the destructive semantics come next, and the follow-up tool is last — each clause carries distinct information with no repetition. Dense but every sentence earns its place.

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 destructive mutation with no output schema, the description supplies the side effects, approval gate, and follow-up action, which is most of what an agent needs. The gap is the unexplained parameter set — an agent still doesn't know what note, method, currency, or amount_cents do on a delete call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 25% (just id and its payment_id alias), yet the description mentions no parameters at all — not the note, method, currency, invoice_id, occurred_at, or amount_cents fields, several of which are unexplained and odd for a delete operation. With 8 parameters and sparse schema text, the description needed to compensate here and does not.

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?

"Retires a payment fact row" names a specific verb and resource, and the parenthetical clarifies it is a soft-retire within an append-only ledger rather than a hard delete or an edit. It explicitly contrasts with the alternative correction path by naming invoice_payment_record, so it is distinguishable from the large family of invoice_payment_* siblings.

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?

States this is "the only correction lane" given payments are append-only and amounts are never edited, which tells the agent both when to reach for it and why no update-style sibling applies. The "NEXT: invoice_payment_record to re-record the correct amount" clause completes the workflow routing.

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.

Resources