Skip to main content
Glama

Remove a payment method

remove_payment_method
DestructiveIdempotent

IRREVERSIBLE: Remove a payment method

Removes a stored card or other payment method from your account. This cannot be undone: to use it again, add the card again in the dashboard. Refused with 400 for your default method and for your only method; make another one the default with set_default_payment_method first. paymentMethodId is an id from list_payment_methods.

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": {
      "paymentMethodId": "<paymentMethodId>"
    },
    "name": "remove_payment_method"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoLeave out on the first call. EchoCall then answers with a confirmation value. Ask the user for a clear yes, then repeat the call with the same arguments and this value.
paymentMethodIdYes`id` from `GET /billing/payment-methods`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is covered. The description adds real context beyond that: the action cannot be undone, the card must be re-added in the dashboard to use it again, and two specific refusal conditions return 400. It does not describe the response body, but no output schema exists and the error semantics are the more important disclosure.

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?

Dense and well-ordered: the irreversibility warning is front-loaded, then the effect, then the failure conditions and remedy. The only waste is the opening line restating the tool's title verbatim after the 'IRREVERSIBLE' marker.

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

Completeness5/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 no output schema, the definition covers consequences, refusal cases, the prerequisite alternative, and parameter provenance. An agent has everything needed to call it correctly or route elsewhere.

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

Parameters4/5

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

Schema coverage is 100%, and the schema already explains the two-step `confirm` echo flow in detail. The description still adds provenance for `paymentMethodId` by tying it to `list_payment_methods` rather than only the raw endpoint, which helps an agent chain the calls, though it does not add format detail beyond that.

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?

States a specific verb and resource ('Removes a stored card or other payment method from your account') and leads with an 'IRREVERSIBLE' scope marker. It is clearly distinguishable from siblings like set_default_payment_method and list_payment_methods, which are named explicitly.

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?

Gives explicit when-not conditions: the call is refused with 400 for the default method and for the only method, and the agent is told to use `set_default_payment_method` first in that case. The alternative and the precondition that selects it are both spelled out.

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