get_headcount
Aggregates employee counts by department, company, location, or other fields to analyze workforce distribution.
Instructions
Get headcount grouped by a specific field.
Aggregates employee counts by department, company, location, country, etc. Computed client-side since OData v2 doesn't support $apply/groupby.
Note: For large organizations, results are based on up to 5000 active employee records.
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": {
"group_by": "<group_by>"
},
"name": "get_headcount"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filters | No | ||
| group_by | Yes | Field to group by: 'department', 'company', 'division', 'location', 'countryOfCompany', 'employmentType', 'employeeClass' | |
| data_center | No | ||
| auth_user_id | No | ||
| auth_password | No | ||
| include_inactive | No | Include terminated/inactive employees |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||