Get Category
get_categoryRetrieve a category by ID and optionally calculate total spent and earned within a start/end date range.
Instructions
Retrieve a single category, optionally with spending for a period.
Provide start_date and end_date together to include the total spent and earned in this category over that period.
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": {
"req": "<req>"
},
"name": "get_category"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| req | Yes | Request for getting a single category by ID, with optional spending period. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Unique identifier for the category | |
| name | Yes | Display name of the category | |
| notes | No | Optional notes or description about this category | |
| spent | No | Total spent in this category for the requested period (positive number). Only present when a date range is requested. | |
| earned | No | Total earned in this category for the requested period (positive number). Only present when a date range is requested. |