Create Category
create_categoryCreate a new spending/income category (INCOME or EXPENSE). Useful before calling categorize or set_budget. Requires confirmation: true to execute.
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>",
"type": "<type>",
"confirmation": "<confirmation>"
},
"name": "create_category"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | No | Optional icon identifier for the category | |
| name | Yes | Category display name | |
| type | Yes | CategoryType enum value | |
| color | No | Optional hex color (e.g. #FF5733) | |
| confirmation | Yes | Must be true to execute the mutation | |
| idempotencyKey | No | Optional idempotency key — calls with the same key (per-user, within 24h) return the cached response without re-executing. |