get_org_admin_by_orgid_pending
Calls GET /api/org-admin/{orgId}/pending as the signed-in person · REST reference
The organization's unanswered invitations and undecided join requests
With the caller's own token; requires admin.users.view in the organization (the roster read — a pending person is on the roster already).
Arguments
| Argument | Type | Description | |
|---|---|---|---|
orgIdpath | string (uuid) | required |
Example call
A client sends this over the MCP session; Claude and other agents build it for you. The values are placeholders — the shape is real.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_org_admin_by_orgid_pending",
"arguments": {
"orgId": "11111111-1111-4111-8111-111111111111"
}
}
}Result
On success (HTTP 200) the tool returns one text item holding the API's JSON, pretty-printed.
The pending memberships, both directions; empty lists when there are none.
{
"data": {
"invitations": [
{}
],
"joinRequests": [
{}
]
},
"success": true
}Fields
| Field | Type | Description |
|---|---|---|
data | object | |
data.invitations | array of object | Invitations the organization sent that the invitee has not answered. |
data.invitations[].email | string | null | |
data.invitations[].firstName | string | null | |
data.invitations[].groups | array of object | |
data.invitations[].invitedAt | number | null | Epoch milliseconds of the latest invitation. |
data.invitations[].invitedBy | object | null | |
data.invitations[].lastName | string | null | |
data.invitations[].userId | string (uuid) | |
data.joinRequests | array of object | Requests to join the organization it has not decided. |
data.joinRequests[].email | string | null | |
data.joinRequests[].firstName | string | null | |
data.joinRequests[].lastName | string | null | |
data.joinRequests[].requestedAt | number | null | Epoch milliseconds of the request. |
data.joinRequests[].userId | string (uuid) | |
success | true |
When it fails
A failed call returns isError: true with the API's message as text.
400The request was malformed or failed a guard.
403Authenticated, but the caller holds none of the required permissions.
What the model is shown
This is the tool exactly as the server lists it in tools/list. The description starts with the REST call it makes.
{
"name": "get_org_admin_by_orgid_pending",
"description": "GET /api/org-admin/{orgId}/pending — With the caller's own token; requires `admin.users.view` in the organization (the roster read — a pending person is on the roster already).",
"inputSchema": {
"type": "object",
"properties": {
"orgId": {
"type": "string"
}
},
"required": [
"orgId"
]
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false
}
}