Skip to main content
Glama

Cancel Payment Attempt

cancel_payment_attempt
Destructive

Cancel an unpaid Cashfree session or check Razorpay/PhonePe/Paytm status after signed-in browser approval, then persist provider state. May restore reservations or finalize an already-paid order; does not capture payment.

Input Schema

NameRequiredDescriptionDefault
attempt_idYes
confirmation_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Beyond annotations, it discloses important side effects: persisting provider state, possibly restoring reservations, and finalizing an already-paid order, while explicitly stating it does not capture payment. The destructiveHint=true annotation is consistent with this, and the description meaningfully adds provider-auth context.

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?

The description is short and front-loaded, with no filler. Its density is high because it packs provider conditions, side effects, and persistence into two sentences, but it remains readable.

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

Completeness3/5

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

The output schema exists, so return values need not be described, and annotations cover safety traits. Still, with 0% schema description coverage, the description leaves a key parameter (confirmation_id) unexplained and only weakly identifies attempt_id.

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 0%, so the description must explain the two parameters. It does not clarify attempt_id, and it does not mention confirmation_id at all, leaving required invocation semantics largely undocumented.

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?

The description names concrete actions and resources: cancel an unpaid Cashfree session, check Razorpay/PhonePe/Paytm status, and persist provider state. It is specific enough to distinguish this from a simple status-check tool, though the mixed cancel/check behavior is somewhat unusual for a tool named cancel_payment_attempt.

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

Usage Guidelines3/5

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

It gives provider-specific conditions (unpaid Cashfree session vs. after signed-in browser approval) and clarifies that it does not capture payment. However, it does not explicitly contrast this with siblings like get_payment_status, retry_payment, or resume_payment, leaving some when-to-use guidance implied.

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