getCategoryById
Retrieve a category's budget details by ID, including assigned, activity, and available amounts for the current month.
Instructions
Returns a single category. Amounts (assigned, activity, available, etc.) are specific to the current plan month (UTC).
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>",
"category_id": "<category_id>"
},
"name": "getCategoryById"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan_id | Yes | The id of the plan. "last-used" can be used to specify the last used plan and "default" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). | |
| category_id | Yes | The id of the category |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |