add_cap_buckets
Add spending-limit cap buckets to an existing credit card so you can define points caps by category or globally before attaching reward rules.
Instructions
Adds cap buckets (spending limits) to an existing credit card.
Call this BEFORE add_reward_rules if rules need to reference caps.
Args:
card_id: The ID of the card (returned by add_credit_card).
buckets: List of bucket dictionaries. Each bucket should have:
- name (str): Descriptive name (e.g., "SmartBuy Monthly Cap", "Dining Quarterly Cap")
- max_points (float): Maximum points that can be earned in this bucket
- period (str): Reset period. Options: "daily", "statement_month", "quarter", "statement_year". Default "statement_month".
- scope (str): What the cap applies to. Options: "category", "global". Default "category".
Returns:
dict with status and list of created bucket IDs.
Example:
add_cap_buckets(card_id=1, buckets=[
{"name": "SmartBuy Monthly Cap", "max_points": 5000, "period": "statement_month"},
{"name": "Total Monthly Cap", "max_points": 15000, "period": "statement_month", "scope": "global"},
])
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": {
"card_id": "<card_id>",
"buckets": "<buckets>"
},
"name": "add_cap_buckets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buckets | Yes | ||
| card_id | Yes |