Create a category
create_categoryCreates a new YNAB category in an existing category group, with optional goal target, date, and frequency; amounts use milliunits.
Instructions
Creates a new category within an existing category group. To also set a goal at creation time, pass goal_target (and optionally goal_target_date / goal_frequency / goal_needs_whole_amount). Amounts are in milliunits: 1000 = one unit of currency (e.g. $1.00 is 1000, -$12.34 is -12340). Covers POST /plans/{plan_id}/categories.
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": {
"plan_id": "<plan_id>",
"name": "<name>",
"category_group_id": "<category_group_id>"
},
"name": "create_category"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| note | No | ||
| plan_id | Yes | The id of the plan (formerly "budget"). Use "last-used" for the most recently used plan, or "default" if default plan selection is enabled for this token. | |
| goal_target | No | Goal target amount, in milliunits. Amounts are in milliunits: 1000 = one unit of currency (e.g. $1.00 is 1000, -$12.34 is -12340). | |
| goal_frequency | No | ||
| goal_target_date | No | ISO date (e.g. 2025-12-01). | |
| category_group_id | Yes | The id of an existing, non-internal category group. | |
| goal_needs_whole_amount | No |