Gamification: Create spending challenge
create_spending_challenge Create a personal spending challenge.
Args:
name: Challenge name (e.g., "No Coffee November")
category_name: Category to track (e.g., "Dining", "Entertainment")
metric: "spending_limit" (stay under target) or "spending_avoidance" (spend $0)
target_amount: Target amount (used for spending_limit; set 0 for avoidance)
duration_days: Duration in days (7 or 30)
Returns:
Created challenge details
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>",
"category_name": "<category_name>",
"metric": "<metric>",
"target_amount": "<target_amount>"
},
"name": "create_spending_challenge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| metric | Yes | ||
| category_name | Yes | ||
| duration_days | No | ||
| target_amount | Yes |