Aggregate Memories
memory.aggregateAggregate over the matched record set: numeric fields (importance, created_at, epoch) support count/sum/avg/min/max; categorical fields (source, domain, class, status, galaxy) support count only. Unsupported field/op is refused.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "memory.aggregate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | No | Aggregation operator | |
| field | No | Numeric: importance | created_at | epoch. Categorical (count only): source | domain | class | status | galaxy | |
| limit | No | Maximum candidates considered (default 50; must be >= 1) | |
| query | No | Full-text query selecting the memories to aggregate over | |
| metric | No | Alternative metric over matched records: count | session_count | session_span |