aggregate
Aggregate patient and admission metrics like counts or average age, optionally grouped by demographics such as gender or race.
Instructions
Aggregate patients or admissions by a fixed metric, optionally grouped by a fixed column. metric in {patient_count, avg_patient_age, admission_count}; group_by in {gender, admission_type, insurance, race} and must belong to the same table as metric.
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": {
"args": "<args>"
},
"name": "aggregate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| row_cap | Yes | ||
| truncated | Yes |