categorize_transaction
Assign a category to a specific YNAB transaction using its ID and a category ID. Look up category IDs with list_categories and transaction IDs with list_uncategorized_transactions.
Instructions
Assigns a category to a specific transaction. Look up category_id with list_categories and transaction_id with list_uncategorized_transactions first.
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": {
"transaction_id": "<transaction_id>",
"category_id": "<category_id>"
},
"name": "categorize_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| budget_id | No | The budget ID, or 'last-used' for the most recently used budget. | last-used |
| category_id | Yes | The ID of the category to assign. | |
| transaction_id | Yes | The ID of the transaction to categorize. |