query_records
Query daily activity records within a date range, filtered by source or category, with aggregation for weekly or monthly summaries.
Instructions
Query raw daily activity records (one row per date x source x category: minutes, raw_value, raw_unit). Requires a from/to date range (YYYY-MM-DD). Filter by source and/or category (see list_sources). For ranges over ~2 months prefer group_by week or month to keep output small; raw mode is capped by 'limit' and reports truncation.
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": {
"from": "<from>",
"to": "<to>"
},
"name": "query_records"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | End date YYYY-MM-DD (inclusive). | |
| from | Yes | Start date YYYY-MM-DD (inclusive). | |
| limit | No | Max raw rows (default 500). | |
| source | No | Filter by source id, e.g. lastfm. | |
| category | No | Filter by category, e.g. music. | |
| group_by | No | Aggregate sums per period instead of raw rows. |