list_departments
Retrieve all departments read-only to resolve names to IDs for job listings, job creation, or permissions, and rebuild the hierarchy using parent_id.
Instructions
List all departments. Read-only.
Resolves department names to IDs. When a user mentions a department
("Engineering"), use this to find its ID for list_jobs, create_job,
or add_future_job_permission. Each department has parent_id (null for
top level); rebuild the tree from parent_id.
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": "list_departments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | Pass next_cursor from the previous response to get the next page | |
| paginate | No | 'single' for one page, 'all' to auto-fetch every page | single |
| per_page | No | Results per page (max 500) | |
| parent_id | No | Only departments directly under this parent department | |
| force_refresh | No | Bypass cache and fetch fresh data |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |