Skip to main content
Glama

belagent_cancel_payment

Cancel an open, pending payment request before the human or wallet acts on it, releasing the reserved spending-cap budget.

Instructions

Cancel an open, pending payment request before the human or wallet acts on it. Releases reserved spending cap budget.

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": {
      "request_id": "<request_id>"
    },
    "name": "belagent_cancel_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNoOptional explanation for the cancellation
request_idYesThe unique ID of the pending request to cancel

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose one meaningful side effect: the reserved spending cap budget is released. It does not state whether cancellation is reversible, what happens if the request is no longer pending, whether the reason is recorded, or what the call returns on success/failure.

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?

Two sentences, zero filler, with the state precondition and the budget side effect both front-loaded. Nothing repeats the tool name or title.

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 and no annotations, the description covers purpose, precondition, and the budget effect, which is most of what an agent needs. The main remaining gap is failure behavior when the request is not in a pending state.

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 request_id and reason are already documented in the schema. The description adds no extra meaning about the parameters, which is the expected baseline when the schema does the work.

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?

States a specific verb and resource ('Cancel a... payment request') plus the precondition that distinguishes it from a status or listing tool. It never names a sibling, but 'cancel' versus 'request_payment'/'payment_status' is unambiguous enough that an agent can route on the verb alone.

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?

'open, pending' and 'before the human or wallet acts on it' give a clear condition for when this tool applies and imply it is wrong once the request has been acted on. No explicit when-not statement or named alternative (e.g. use payment_status first to confirm state) is given, which keeps it short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.