List departments
Departments of the account with their parent department.
MCP tool ispring_read → list_departments
read
Returns the department tree of the Users section. Every user belongs to exactly one department. Department Administrators see only the departments they manage and their sub-departments. Use department_id in list_users and add_users_by_email.
Parameters
| Name | Type | Description |
|---|---|---|
| query string | string | Part of the department name. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "ispring_read",
"arguments": {
"operation": "list_departments",
"arguments": {}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"departments": [
{
"department_id": "d_10",
"name": "Sales",
"parent": "Company"
},
{
"department_id": "d_11",
"name": "Support",
"parent": "Company"
}
]
},
"isError": false
}