Skip to main content
Glama

Make a payment method the default

set_default_payment_method

Make a payment method the default

Makes one of your stored payment methods the default, so future card payments of your account use it. Use it before remove_payment_method when the current default should go, because the default cannot be removed. paymentMethodId is an id from list_payment_methods, which also shows the current default in defaultPaymentMethodId. A new card can only be added in the dashboard. 400 when the account has no stored card details yet.

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": "set_default_payment_method"
  }
}

Input Schema

NameRequiredDescriptionDefault
paymentMethodIdYes`id` from `GET /billing/payment-methods`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare this is a non-readonly, non-destructive, non-idempotent mutation; the description adds real context beyond that: the 400 returned when no stored card details exist, the rule that a default cannot be removed, and the dashboard-only path for adding cards. It omits what happens to the previously-defaulted method (whether it is silently demoted), which is the one behavioural detail an agent might want confirmed.

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?

Content is front-loaded and every sentence carries operational value (ordering, id source, error case). The only waste is the opening line restating the tool title verbatim before the substantive sentence.

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 single-parameter mutation with annotations and no output schema, the description covers purpose, ordering, valid id source, and the notable 400 failure mode. Only the side effect on the prior default and any success confirmation remain unstated, a minor gap rather than a blocker.

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%, so baseline is 3, but the description adds meaning: it names the MCP tool `list_payment_methods` as the source of valid ids (the schema only cites the raw `GET /billing/payment-methods` endpoint) and points out that same tool surfaces the current default via `defaultPaymentMethodId`, which is genuinely useful for constructing the call.

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 ('Makes one of your stored payment methods the default') and immediately clarifies the effect ('future card payments of your account use it'). It also names the sibling tools it relates to (remove_payment_method, list_payment_methods), so an agent can separate it from neighbouring billing operations.

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 an explicit ordering rule: use this before `remove_payment_method` when the current default should go, because the default cannot be removed. It also names a hard boundary — a new card can only be added in the dashboard — which tells the agent when this tool cannot solve the user's problem.

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.