Count and aggregate roles
aggregate-jobsCount and summarize live roles with the selectrole SQL dialect: COUNT, AVG, MEDIAN, MIN and MAX, with GROUP BY and ORDER BY. Use it for market questions such as how many roles match or median pay by seniority; use query-jobs to list the roles themselves. Every row includes count, its number of roles. Pay needs one currency. Returns at most 50 rows. For pay percentiles use salary-benchmark. jobs://dialect has the rules.
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": {
"sql": "<sql>"
},
"name": "aggregate-jobs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | Aggregate query, e.g. SELECT seniority, COUNT(*), MEDIAN(salary) WHERE currency = 'EUR' GROUP BY seniority |