Skip to main content
Glama
UQPAY MCP Server

UQPAY MCP Server

Official
by uqpay

payment_intent_cancel

Cancel a payment intent by ID to prevent further processing; optionally provide a cancellation reason or act on a sub-account.

Instructions

Cancel a payment intent.

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": {
      "id": "<id>"
    },
    "name": "payment_intent_cancel"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesPayment intent ID
on_behalf_ofNoSub-account ID to act on behalf of. Pass the short account ID (e.g. "CB4488338944") to operate on a sub-account; omit to operate on the master account.
cancellation_reasonNoReason for cancellation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden and fails it: it never states that cancellation is irreversible, what happens to an existing authorization hold or attached refund, or what error states occur for an already-captured intent. The word "cancel" at least signals a mutation, which is the only behavioral information conveyed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four words with zero filler and the action front-loaded, so nothing is wasted. However, the size is not appropriate to the complexity of a destructive financial mutation, making this under-specification rather than genuine conciseness.

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

Completeness2/5

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

For a mutation tool with no annotations, no output schema, and irreversible consequences, the description leaves critical gaps: reversibility, prerequisites, side effects on the authorization, and return behavior. The 100% schema coverage covers the inputs but nothing about behavior or outcome.

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%, with all three parameters (id, on_behalf_of, cancellation_reason) documented in the schema including an enum for the reason. The description adds no syntax, format, or usage nuance beyond that, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Cancel a payment intent" is a near-verbatim expansion of the tool name payment_intent_cancel, which is the textbook tautology case. It states a verb and resource but gives no distinguishing detail against siblings like payment_intent_capture or payment_intent_confirm, so an agent gains nothing it did not already have from the name.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no precondition (e.g. intent must be uncaptured), and no mention of alternatives such as capturing or confirming instead. The description neither excludes nor redirects to any sibling, so the agent must infer call conditions entirely on its own.

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

Deploy Server

Other Tools