Skip to main content
Glama

Cancel payment run

cancel_payment_run
DestructiveIdempotent

Verwirft einen Zahlungslauf, solange keine Zahlung daraus als bezahlt zugeordnet ist (z. B. Upload abgelehnt oder Datei nicht verwendet). Die Belege sind danach wieder zahlbar. Grund ist Pflicht.

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": {
      "run_id": "<run_id>",
      "reason": "<reason>"
    },
    "name": "cancel_payment_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesGrund. Pflicht.
run_idYesZahlungslauf. Pflicht.

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, idempotentHint=true and readOnlyHint=false, so the safety profile is covered. The description still adds real behavioral value: the state consequence ('Die Belege sind danach wieder zahlbar') tells the agent exactly what changes after the call. It stops short of saying how a rejection of the precondition is signalled or whether the run can be restored.

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?

Three short sentences, precondition first, then side effect, then the requirement – well front-loaded and easy to scan. The closing 'Grund ist Pflicht' duplicates what the schema already states as required, which is the one piece of waste.

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 two-parameter mutation with full annotation coverage and no output schema, the description supplies the precondition, the resulting state change, and the mandatory reason. Only the failure mode when the precondition is violated is left unstated, which is a minor gap given the annotations.

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% and both parameters (run_id, reason) are already documented as required in the schema. The description's 'Grund ist Pflicht' merely restates structured data and gives no hint about reason formatting or expected length. Baseline 3 is appropriate since the schema does the work.

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+resource ('Verwirft einen Zahlungslauf') and immediately qualifies the scope with a precondition: no payment from the run may already be assigned as paid. The examples (upload rejected, file not used) make the operation concrete, and the precondition alone is enough to separate it from a matching tool like match_payment_run.

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 both the when ('solange keine Zahlung daraus als bezahlt zugeordnet ist') and the implicit when-not (a run with a paid assignment cannot be discarded), plus two illustrative triggers. It does not name an alternative tool or redirect the agent when the precondition fails, which keeps it below a 5.

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