aggregates
Summary stats over the filtered set: totals, branch split, most-active officials, top tickers bought/sold (per individual stock), top sectors bought/sold, potential conflict count, date range. Accepts the same branch/role/since/until/type/ticker filters as search — pass branch=congress + role=Senate + since=YYYY-MM-DD to scope. Use this BEFORE paginating search_trades when you only need ranked counts.
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": "aggregates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Chamber (Senate/House) or title substring | |
| type | No | Direction: "buy", "sell", or "exchange" (case-insensitive) | |
| since | No | ||
| until | No | ||
| branch | No | Either "congress" or "executive" (case-insensitive) | |
| ticker | No |