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
| Name | Required | Description | Default |
|---|---|---|---|
| cvc | Yes | ||
| label | Yes | A name for the card, such as "Mercury ops card". Unique per identity. | |
| number | Yes | The card number. Spaces and dashes are ignored. | |
| replace | No | Replace the card saved under this label. | |
| exp_year | Yes | Four digits, or two. | |
| exp_month | Yes | ||
| identity_id | No | Identity to use. Omit when the account has exactly one identity. | |
| name_on_card | Yes | ||
| allowed_sites | Yes | The checkout hosts this card may be typed into, 1 to 20. | |
| billing_address | No | ||
| max_per_fill_cents | No | Spend rule: the most one fill may be for, in cents of the card currency. Omit or null for no limit. |