save_preset
Save your own preset — a named set of rules (spend caps, category/merchant/place/currency/day/hour/program restrictions) you can reuse by name in set_card_preset or create_card. Saving under a name you already used adds a new version: cards already using the old one keep it, new ones get the update. Pick a name other than the built-ins (ai_labs, weekday_meals, cli_only, daily). Pass either the rule fields below or a raw privileges array.
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": {
"name": "<name>"
},
"name": "save_preset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | What the preset does when a purchase breaks any of its rules: "strict" refuses it (the default), "watch" lets it through and tells the user once. | |
| name | Yes | A name for this preset, e.g. "meals-only". | |
| total | No | Lifetime spend cap, in US dollars. | |
| only_in | No | Comma-separated places to allow charges from: a country ("US", "Canada"), a region ("europe", "eu", "north-america", "latin-america", "apac"), or a US state ("California", "US-CA"). A region expands to its countries; a state next to a region narrows only the US, e.g. "north-america,US-CA". Example: "europe,Canada". | |
| per_day | No | Spend cap per rolling 24 hours, in US dollars. | |
| per_week | No | Spend cap per rolling 7 days, in US dollars. | |
| timezone | No | IANA timezone for only_days/only_hours (default UTC), e.g. "America/Los_Angeles". Always shown in summaries. | |
| only_days | No | Comma-separated days to allow, e.g. "mon,tue,wed" or "weekdays"/"weekends". | |
| only_from | No | Comma-separated callers to allow, e.g. "cli,mcp" (cli, mcp, api, browser). | |
| per_month | No | Spend cap per rolling 30 days, in US dollars. | |
| categories | No | Comma-separated spend categories to allow, e.g. "meals,groceries" (meals, groceries, travel, software, ai, wellness, retail). | |
| currencies | No | Comma-separated purchase currencies to allow: ISO 4217 codes or common names, e.g. "usd,eur" or "dollars,euros,pounds,yen". In strict mode a purchase in another currency is refused at checkout and a settled charge in another currency pauses the card. Checked by Agentcard at checkout and settlement, not by the card network. Unknown currencies are refused. | |
| only_hours | No | An hour range to allow, e.g. "9-17" (24-hour clock; defaults to UTC without timezone). | |
| privileges | No | Advanced: raw privilege objects instead of the rule fields above. | |
| only_merchants | No | Comma-separated merchant name patterns to allow, e.g. "openai,anthropic". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preset | No | ||
| message | Yes |