Expand polyarchy node
polyarchy-expandFetch a single node's relationships from Microsoft Graph as a delta, expanding org hierarchy, group memberships, access roles, or attribute cohorts.
Instructions
Fetch one node's relationships from Microsoft Graph as a nodes/edges delta. Dimensions for a user node: org (manager chain + direct reports), groups (memberships), access (directory roles + app assignments), attributes (pivot hub for attr). For nodeType group/role, returns members. For nodeType attribute pass attr+value to load the whole cohort. The delta is returned to the caller only — it does not update an open polyarchy canvas (the UI fetches its own data when the user interacts with it).
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": {
"nodeType": "<nodeType>"
},
"name": "polyarchy-expand"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attr | No | Attribute name or nested path, e.g. department or onPremisesExtensionAttributes/extensionAttribute9 | |
| value | No | Attribute value (attribute-cohort expansion) | |
| nodeId | No | Entra object id (users, groups, roles); a UPN also works for users | |
| userId | No | Alias for nodeId | |
| nodeType | Yes | ||
| dimension | No | org |