get_org_admin_by_orgid_groups

Read-only

Calls GET /api/org-admin/{orgId}/groups as the signed-in person · REST reference

The organization's groups, their roles and rosters

With the caller's own token; requires admin.groups.view in the organization (every member holds it).

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_groups",
    "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 organization's live groups — OWNER, then MEMBER, then its own.

json
{
  "data": [
    {
      "id": "11111111-1111-4111-8111-111111111111",
      "members": [],
      "name": "string",
      "orgId": "11111111-1111-4111-8111-111111111111",
      "reserved": true,
      "roles": [],
      "description": "string",
      "type": "string"
    }
  ],
  "success": true
}

Fields

FieldTypeDescription
dataarray of object
data[].descriptionstring | null
data[].idstring (uuid)
data[].membersarray of object
data[].members[].emailstring | null
data[].members[].firstNamestring | null
data[].members[].lastNamestring | null
data[].members[].status"INVITED" | "REQUESTED" | "ACCEPTED" | "APPROVED" | "ACTIVE" | "DECLINED" | … (8 values)Only ACTIVE and APPROVED confer anything; INVITED (the org asked) and REQUESTED (the person asked) are pending.
data[].members[].userIdstring (uuid)
data[].namestring
data[].orgIdstring (uuid)
data[].reservedbooleanThe organization's OWNER and MEMBER groups — never renamed, deleted or given other roles, and the OWNER group's one member changes only by an ownership transfer.
data[].rolesarray of object
data[].roles[].codestring | null
data[].roles[].editablebooleanOne of this organization's own, non-built-in roles — settable on a group.
data[].roles[].idstring (uuid)
data[].roles[].namestring
data[].typestring | null
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_groups",
  "description": "GET /api/org-admin/{orgId}/groups — With the caller's own token; requires `admin.groups.view` in the organization (every member holds it).",
  "inputSchema": {
    "type": "object",
    "properties": {
      "orgId": {
        "type": "string"
      }
    },
    "required": [
      "orgId"
    ]
  },
  "annotations": {
    "readOnlyHint": true,
    "openWorldHint": false
  }
}