Create Category
create_categoryCreate a new spending/income category (INCOME or EXPENSE). Useful before calling categorize or set_budget. Requires confirmation: true to execute.
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. |