get_org_admin_by_orgid_pending

Read-only

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

ArgumentTypeDescription
orgIdpathstring (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.

json
{
  "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.

json
{
  "data": {
    "invitations": [
      {}
    ],
    "joinRequests": [
      {}
    ]
  },
  "success": true
}

Fields

FieldTypeDescription
dataobject
data.invitationsarray of objectInvitations the organization sent that the invitee has not answered.
data.invitations[].emailstring | null
data.invitations[].firstNamestring | null
data.invitations[].groupsarray of object
data.invitations[].invitedAtnumber | nullEpoch milliseconds of the latest invitation.
data.invitations[].invitedByobject | null
data.invitations[].lastNamestring | null
data.invitations[].userIdstring (uuid)
data.joinRequestsarray of objectRequests to join the organization it has not decided.
data.joinRequests[].emailstring | null
data.joinRequests[].firstNamestring | null
data.joinRequests[].lastNamestring | null
data.joinRequests[].requestedAtnumber | nullEpoch milliseconds of the request.
data.joinRequests[].userIdstring (uuid)
successtrue

When it fails

A failed call returns isError: true with the API's message as text.

400

The request was malformed or failed a guard.

403

Authenticated, 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.

json
{
  "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
  }
}