Summarize a topic
summarize_topicTotals, today, daily average, streak, best day and goal progress for a topic over a range. Prefer this over query_entries for "how was my week". Streak and best are counted within the range, so pass 90d or all to find a long streak.
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": {
"topicId": "<topicId>",
"range": "<range>"
},
"name": "summarize_topic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | No | A declared field key (e.g. protein) to summarize instead of the main value. | |
| range | Yes | The window to cover, ending today. | |
| topicId | Yes | The topic to summarize. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| best | Yes | ||
| days | Yes | ||
| flow | Yes | ||
| goal | No | ||
| unit | Yes | ||
| range | Yes | ||
| today | Yes | ||
| total | Yes | ||
| trend | Yes | ||
| latest | Yes | ||
| streak | Yes | ||
| average | Yes | ||
| topicId | Yes | ||
| adherence | Yes |