Skip to main content
Glama

save_card

Store a payment card from any issuer (Mercury, Stripe Issuing, Ramp or a bank) for this identity. The number and CVC are encrypted and never returned by any tool; fill_card types them into a checkout page. allowed_sites are the only sites the card is typed into. With max_per_fill_cents set, a fill above it (or with no amount) waits for the owner to approve. A label already saved needs replace: true.

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": {
      "label": "<label>",
      "number": "<number>",
      "exp_month": "<exp_month>",
      "exp_year": "<exp_year>",
      "cvc": "<cvc>",
      "name_on_card": "<name_on_card>",
      "allowed_sites": "<allowed_sites>"
    },
    "name": "save_card"
  }
}

Input Schema

NameRequiredDescriptionDefault
cvcYes
labelYesA name for the card, such as "Mercury ops card". Unique per identity.
numberYesThe card number. Spaces and dashes are ignored.
replaceNoReplace the card saved under this label.
exp_yearYesFour digits, or two.
exp_monthYes
identity_idNoIdentity to use. Omit when the account has exactly one identity.
name_on_cardYes
allowed_sitesYesThe checkout hosts this card may be typed into, 1 to 20.
billing_addressNo
max_per_fill_centsNoSpend rule: the most one fill may be for, in cents of the card currency. Omit or null for no limit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations at all, the description carries the full burden and does so well: it discloses that the number and CVC are encrypted and unreachable by any tool, that allowed_sites is an enforced typing restriction, that max_per_fill_cents gates fills above the limit (or with no amount) behind owner approval, and that a duplicate label requires replace. These are exactly the mutation and security traits an agent cannot infer from structured fields.

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?

Four tight sentences, each earning its place: purpose and issuer scope first, then the secrecy guarantee, then the two constraints (allowed_sites, spend limit), then the replace caveat. High information density with no filler or repetition of the schema.

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 an 11-parameter mutation tool with a nested billing_address, no annotations, and no output schema, the description covers the security model, the site restriction, the approval flow, and the duplicate-label rule. The remaining gap is the nested billing address and what a successful store returns or validates against the issuer, but nothing critical to calling it correctly is absent.

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 64%, and the description adds real meaning for the highest-risk fields: allowed_sites as the only permitted typing hosts, max_per_fill_cents as an approval-triggering spend rule, and replace as the duplicate-label switch. It leaves billing_address, exp_month/exp_year, and name_on_card to the schema, which is acceptable but leaves the nested object entirely unexplained in prose.

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 ("Store a payment card") plus the scope ("for this identity") and the accepted issuers. It also names the sibling it is not, fill_card, which types the stored card into a checkout, so the agent can separate storage from use without opening a schema.

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?

Clear routing is implied and partly explicit: use this tool to persist a card, use fill_card to spend it, and set replace: true when the label already exists. What is missing is any exclusion or prerequisite guidance for the other write siblings (save_key, save_login, save_authenticator) and no statement about what to do when a card should be updated rather than replaced.

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