# MCP tool reference

1 callable tools.

Use tools/call at https://mcp.schedulerzero.com/mcp with the exact tool name and arguments below. The /tools/ paths in this view are documentation identifiers, not HTTP endpoints. Request execution is disabled for this reference.

Inputs are shown for personal API keys (bound) and for OAuth/delegated agents. Output schemas describe MCP structuredContent: native objects pass through; arrays, scalars and null use a data wrapper. Text content retains the native JSON result.

[Connect a client](/mcp/connect) · [Authentication and authorization](/authentication) · [Generated auth guide](/auth.md) · [Download tool catalog](/mcp-catalog.json) · [Agent documentation](/llms.txt)

## manage_organization_members

List Organization or Workspace members and change or remove their grants within the user's own permissions.

Use to give a member roles, direct permissions, an all-Workspaces grant, or per-Workspace access, or to remove them.

Grants can never exceed what the user holds; the owner changes only by ownership transfer. Use invitations to add new people.

Obtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.

Scopes: orgMember:read, orgMember:update, orgMember:remove, workspaceMember:read, workspaceMember:update, workspaceMember:remove

Risk: destructive; confirmation: explicit; idempotency: supported.

### Input schema (personal API key)

```json
{
  "type": "object",
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "action": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "list"
              ]
            }
          ]
        },
        "organizationId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        }
      },
      "required": [
        "action",
        "organizationId"
      ],
      "patternProperties": {
        "^(?!(?:action|organizationId)$)[\\s\\S]*$": false
      },
      "additionalProperties": true,
      "propertyNames": {
        "type": "string",
        "enum": [
          "action",
          "organizationId"
        ]
      }
    },
    {
      "type": "object",
      "properties": {
        "action": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "listWorkspace"
              ]
            }
          ]
        },
        "organizationId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        },
        "workspaceId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        }
      },
      "required": [
        "action",
        "organizationId",
        "workspaceId"
      ],
      "patternProperties": {
        "^(?!(?:action|organizationId|workspaceId)$)[\\s\\S]*$": false
      },
      "additionalProperties": true,
      "propertyNames": {
        "type": "string",
        "enum": [
          "action",
          "organizationId",
          "workspaceId"
        ]
      }
    },
    {
      "type": "object",
      "properties": {
        "action": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "updateGrants"
              ]
            }
          ]
        },
        "organizationId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        },
        "userId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        },
        "organization": {
          "type": "object",
          "properties": {
            "roles": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/RoleId"
              },
              "maxItems": 32
            },
            "direct": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "audit:read",
                  "billing:manage",
                  "billing:read",
                  "org:delete",
                  "orgAnalytics:read",
                  "orgAnalytics:manage",
                  "org:read",
                  "org:update",
                  "orgApiKey:manage",
                  "orgMember:invite",
                  "orgMember:read",
                  "orgMember:remove",
                  "orgMember:update",
                  "role:manage",
                  "role:read",
                  "usage:read",
                  "workspace:create",
                  "workspace:delete",
                  "workspace:transfer"
                ]
              },
              "maxItems": 128
            }
          },
          "required": [
            "roles",
            "direct"
          ],
          "patternProperties": {
            "^(?!(?:roles|direct)$)[\\s\\S]*$": false
          },
          "additionalProperties": true,
          "propertyNames": {
            "type": "string",
            "enum": [
              "roles",
              "direct"
            ]
          }
        },
        "allWorkspaces": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "roles": {
                  "type": "array",
                  "items": {
                    "$ref": "#/$defs/RoleId"
                  },
                  "maxItems": 32
                },
                "direct": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "analytics:export",
                      "analytics:read",
                      "apiKey:create",
                      "apiKey:delete",
                      "apiKey:read",
                      "apiKey:update",
                      "blocklist:create",
                      "blocklist:delete",
                      "blocklist:read",
                      "campaign:archive",
                      "campaign:create",
                      "campaign:delete",
                      "campaign:launch",
                      "campaign:pause",
                      "campaign:read",
                      "campaign:update",
                      "dialer:assign_numbers",
                      "dialer:assign_seats",
                      "dialer:create",
                      "dialer:delete",
                      "dialer:dial",
                      "dialer:manage_billing",
                      "dialer:manage_number_health",
                      "dialer:manage_numbers",
                      "dialer:manage_numbers_self",
                      "dialer:manage_voicemails",
                      "dialer:read",
                      "dialer:read_analytics",
                      "dialer:read_numbers_all",
                      "dialer:release_numbers",
                      "dialer:update",
                      "domain:manage_dns",
                      "domain:purchase",
                      "domain:read",
                      "domain:transfer",
                      "emailVerification:manage_credits",
                      "emailVerification:manage_keys",
                      "emailVerification:manage_sharing",
                      "emailVerification:read",
                      "emailVerification:verify",
                      "inbox:connect",
                      "inbox:create",
                      "inbox:delete",
                      "inbox:read",
                      "inbox:update",
                      "inbox:warmup_manage",
                      "integration:create",
                      "integration:delete",
                      "integration:read",
                      "integration:update",
                      "lead:create",
                      "lead:delete",
                      "lead:export",
                      "lead:import",
                      "lead:read",
                      "lead:update",
                      "leadList:create",
                      "leadList:delete",
                      "leadList:read",
                      "leadList:update",
                      "phoneVerification:manage_keys",
                      "phoneVerification:read",
                      "phoneVerification:verify",
                      "replyLabel:create",
                      "replyLabel:delete",
                      "replyLabel:read",
                      "replyLabel:update",
                      "sequence:create",
                      "sequence:delete",
                      "sequence:read",
                      "sequence:update",
                      "sql:manage_dashboards",
                      "sql:query",
                      "support:create",
                      "support:read",
                      "support:update",
                      "tag:create",
                      "tag:delete",
                      "tag:read",
                      "tag:update",
                      "task:create",
                      "task:delete",
                      "task:read",
                      "task:update",
                      "template:create",
                      "template:delete",
                      "template:read",
                      "template:update",
                      "unibox:archive",
                      "unibox:label",
                      "unibox:read",
                      "unibox:reply",
                      "webhook:create",
                      "webhook:delete",
                      "webhook:read",
                      "webhook:update",
                      "whiteLabel:read",
                      "whiteLabel:update",
                      "workflow:create",
                      "workflow:delete",
                      "workflow:publish",
                      "workflow:read",
                      "workflow:run",
                      "workflow:update",
                      "workspace:read",
                      "workspace:update",
                      "workspaceMember:invite",
                      "workspaceMember:read",
                      "workspaceMember:remove",
                      "workspaceMember:update"
                    ]
                  },
                  "maxItems": 512
                }
              },
              "required": [
                "roles",
                "direct"
              ],
              "patternProperties": {
                "^(?!(?:roles|direct)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "roles",
                  "direct"
                ]
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "workspaces": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "workspaceId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "roles": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/RoleId"
                },
                "maxItems": 32
              },
              "direct": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "analytics:export",
                    "analytics:read",
                    "apiKey:create",
                    "apiKey:delete",
                    "apiKey:read",
                    "apiKey:update",
                    "blocklist:create",
                    "blocklist:delete",
                    "blocklist:read",
                    "campaign:archive",
                    "campaign:create",
                    "campaign:delete",
                    "campaign:launch",
                    "campaign:pause",
                    "campaign:read",
                    "campaign:update",
                    "dialer:assign_numbers",
                    "dialer:assign_seats",
                    "dialer:create",
                    "dialer:delete",
                    "dialer:dial",
                    "dialer:manage_billing",
                    "dialer:manage_number_health",
                    "dialer:manage_numbers",
                    "dialer:manage_numbers_self",
                    "dialer:manage_voicemails",
                    "dialer:read",
                    "dialer:read_analytics",
                    "dialer:read_numbers_all",
                    "dialer:release_numbers",
                    "dialer:update",
                    "domain:manage_dns",
                    "domain:purchase",
                    "domain:read",
                    "domain:transfer",
                    "emailVerification:manage_credits",
                    "emailVerification:manage_keys",
                    "emailVerification:manage_sharing",
                    "emailVerification:read",
                    "emailVerification:verify",
                    "inbox:connect",
                    "inbox:create",
                    "inbox:delete",
                    "inbox:read",
                    "inbox:update",
                    "inbox:warmup_manage",
                    "integration:create",
                    "integration:delete",
                    "integration:read",
                    "integration:update",
                    "lead:create",
                    "lead:delete",
                    "lead:export",
                    "lead:import",
                    "lead:read",
                    "lead:update",
                    "leadList:create",
                    "leadList:delete",
                    "leadList:read",
                    "leadList:update",
                    "phoneVerification:manage_keys",
                    "phoneVerification:read",
                    "phoneVerification:verify",
                    "replyLabel:create",
                    "replyLabel:delete",
                    "replyLabel:read",
                    "replyLabel:update",
                    "sequence:create",
                    "sequence:delete",
                    "sequence:read",
                    "sequence:update",
                    "sql:manage_dashboards",
                    "sql:query",
                    "support:create",
                    "support:read",
                    "support:update",
                    "tag:create",
                    "tag:delete",
                    "tag:read",
                    "tag:update",
                    "task:create",
                    "task:delete",
                    "task:read",
                    "task:update",
                    "template:create",
                    "template:delete",
                    "template:read",
                    "template:update",
                    "unibox:archive",
                    "unibox:label",
                    "unibox:read",
                    "unibox:reply",
                    "webhook:create",
                    "webhook:delete",
                    "webhook:read",
                    "webhook:update",
                    "whiteLabel:read",
                    "whiteLabel:update",
                    "workflow:create",
                    "workflow:delete",
                    "workflow:publish",
                    "workflow:read",
                    "workflow:run",
                    "workflow:update",
                    "workspace:read",
                    "workspace:update",
                    "workspaceMember:invite",
                    "workspaceMember:read",
                    "workspaceMember:remove",
                    "workspaceMember:update"
                  ]
                },
                "maxItems": 512
              }
            },
            "required": [
              "workspaceId",
              "roles",
              "direct"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|roles|direct)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "roles",
                "direct"
              ]
            }
          },
          "maxItems": 500
        }
      },
      "required": [
        "action",
        "organizationId",
        "userId"
      ],
      "patternProperties": {
        "^(?!(?:action|organizationId|userId|organization|allWorkspaces|workspaces)$)[\\s\\S]*$": false
      },
      "additionalProperties": true,
      "propertyNames": {
        "type": "string",
        "enum": [
          "action",
          "organizationId",
          "userId",
          "organization",
          "allWorkspaces",
          "workspaces"
        ]
      }
    },
    {
      "type": "object",
      "properties": {
        "action": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "remove"
              ]
            }
          ]
        },
        "organizationId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        },
        "userId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        }
      },
      "required": [
        "action",
        "organizationId",
        "userId"
      ],
      "patternProperties": {
        "^(?!(?:action|organizationId|userId)$)[\\s\\S]*$": false
      },
      "additionalProperties": true,
      "propertyNames": {
        "type": "string",
        "enum": [
          "action",
          "organizationId",
          "userId"
        ]
      }
    },
    {
      "type": "object",
      "properties": {
        "action": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "removeFromWorkspace"
              ]
            }
          ]
        },
        "organizationId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        },
        "workspaceId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        },
        "userId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        }
      },
      "required": [
        "action",
        "organizationId",
        "workspaceId",
        "userId"
      ],
      "patternProperties": {
        "^(?!(?:action|organizationId|workspaceId|userId)$)[\\s\\S]*$": false
      },
      "additionalProperties": true,
      "propertyNames": {
        "type": "string",
        "enum": [
          "action",
          "organizationId",
          "workspaceId",
          "userId"
        ]
      }
    }
  ],
  "$defs": {
    "RoleId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512
    },
    "ManageOrganizationMembersInput": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "action": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "list"
                  ]
                }
              ]
            },
            "organizationId": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            }
          },
          "required": [
            "action",
            "organizationId"
          ],
          "patternProperties": {
            "^(?!(?:action|organizationId)$)[\\s\\S]*$": false
          },
          "additionalProperties": true,
          "propertyNames": {
            "type": "string",
            "enum": [
              "action",
              "organizationId"
            ]
          }
        },
        {
          "type": "object",
          "properties": {
            "action": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "listWorkspace"
                  ]
                }
              ]
            },
            "organizationId": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            },
            "workspaceId": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            }
          },
          "required": [
            "action",
            "organizationId",
            "workspaceId"
          ],
          "patternProperties": {
            "^(?!(?:action|organizationId|workspaceId)$)[\\s\\S]*$": false
          },
          "additionalProperties": true,
          "propertyNames": {
            "type": "string",
            "enum": [
              "action",
              "organizationId",
              "workspaceId"
            ]
          }
        },
        {
          "type": "object",
          "properties": {
            "action": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "updateGrants"
                  ]
                }
              ]
            },
            "organizationId": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            },
            "userId": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            },
            "organization": {
              "type": "object",
              "properties": {
                "roles": {
                  "type": "array",
                  "items": {
                    "$ref": "#/$defs/RoleId"
                  },
                  "maxItems": 32
                },
                "direct": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "audit:read",
                      "billing:manage",
                      "billing:read",
                      "org:delete",
                      "orgAnalytics:read",
                      "orgAnalytics:manage",
                      "org:read",
                      "org:update",
                      "orgApiKey:manage",
                      "orgMember:invite",
                      "orgMember:read",
                      "orgMember:remove",
                      "orgMember:update",
                      "role:manage",
                      "role:read",
                      "usage:read",
                      "workspace:create",
                      "workspace:delete",
                      "workspace:transfer"
                    ]
                  },
                  "maxItems": 128
                }
              },
              "required": [
                "roles",
                "direct"
              ],
              "patternProperties": {
                "^(?!(?:roles|direct)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "roles",
                  "direct"
                ]
              }
            },
            "allWorkspaces": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "roles": {
                      "type": "array",
                      "items": {
                        "$ref": "#/$defs/RoleId"
                      },
                      "maxItems": 32
                    },
                    "direct": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "analytics:export",
                          "analytics:read",
                          "apiKey:create",
                          "apiKey:delete",
                          "apiKey:read",
                          "apiKey:update",
                          "blocklist:create",
                          "blocklist:delete",
                          "blocklist:read",
                          "campaign:archive",
                          "campaign:create",
                          "campaign:delete",
                          "campaign:launch",
                          "campaign:pause",
                          "campaign:read",
                          "campaign:update",
                          "dialer:assign_numbers",
                          "dialer:assign_seats",
                          "dialer:create",
                          "dialer:delete",
                          "dialer:dial",
                          "dialer:manage_billing",
                          "dialer:manage_number_health",
                          "dialer:manage_numbers",
                          "dialer:manage_numbers_self",
                          "dialer:manage_voicemails",
                          "dialer:read",
                          "dialer:read_analytics",
                          "dialer:read_numbers_all",
                          "dialer:release_numbers",
                          "dialer:update",
                          "domain:manage_dns",
                          "domain:purchase",
                          "domain:read",
                          "domain:transfer",
                          "emailVerification:manage_credits",
                          "emailVerification:manage_keys",
                          "emailVerification:manage_sharing",
                          "emailVerification:read",
                          "emailVerification:verify",
                          "inbox:connect",
                          "inbox:create",
                          "inbox:delete",
                          "inbox:read",
                          "inbox:update",
                          "inbox:warmup_manage",
                          "integration:create",
                          "integration:delete",
                          "integration:read",
                          "integration:update",
                          "lead:create",
                          "lead:delete",
                          "lead:export",
                          "lead:import",
                          "lead:read",
                          "lead:update",
                          "leadList:create",
                          "leadList:delete",
                          "leadList:read",
                          "leadList:update",
                          "phoneVerification:manage_keys",
                          "phoneVerification:read",
                          "phoneVerification:verify",
                          "replyLabel:create",
                          "replyLabel:delete",
                          "replyLabel:read",
                          "replyLabel:update",
                          "sequence:create",
                          "sequence:delete",
                          "sequence:read",
                          "sequence:update",
                          "sql:manage_dashboards",
                          "sql:query",
                          "support:create",
                          "support:read",
                          "support:update",
                          "tag:create",
                          "tag:delete",
                          "tag:read",
                          "tag:update",
                          "task:create",
                          "task:delete",
                          "task:read",
                          "task:update",
                          "template:create",
                          "template:delete",
                          "template:read",
                          "template:update",
                          "unibox:archive",
                          "unibox:label",
                          "unibox:read",
                          "unibox:reply",
                          "webhook:create",
                          "webhook:delete",
                          "webhook:read",
                          "webhook:update",
                          "whiteLabel:read",
                          "whiteLabel:update",
                          "workflow:create",
                          "workflow:delete",
                          "workflow:publish",
                          "workflow:read",
                          "workflow:run",
                          "workflow:update",
                          "workspace:read",
                          "workspace:update",
                          "workspaceMember:invite",
                          "workspaceMember:read",
                          "workspaceMember:remove",
                          "workspaceMember:update"
                        ]
                      },
                      "maxItems": 512
                    }
                  },
                  "required": [
                    "roles",
                    "direct"
                  ],
                  "patternProperties": {
                    "^(?!(?:roles|direct)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "roles",
                      "direct"
                    ]
                  }
                },
                {
                  "type": "null"
                }
              ]
            },
            "workspaces": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "workspaceId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "roles": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/RoleId"
                    },
                    "maxItems": 32
                  },
                  "direct": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "analytics:export",
                        "analytics:read",
                        "apiKey:create",
                        "apiKey:delete",
                        "apiKey:read",
                        "apiKey:update",
                        "blocklist:create",
                        "blocklist:delete",
                        "blocklist:read",
                        "campaign:archive",
                        "campaign:create",
                        "campaign:delete",
                        "campaign:launch",
                        "campaign:pause",
                        "campaign:read",
                        "campaign:update",
                        "dialer:assign_numbers",
                        "dialer:assign_seats",
                        "dialer:create",
                        "dialer:delete",
                        "dialer:dial",
                        "dialer:manage_billing",
                        "dialer:manage_number_health",
                        "dialer:manage_numbers",
                        "dialer:manage_numbers_self",
                        "dialer:manage_voicemails",
                        "dialer:read",
                        "dialer:read_analytics",
                        "dialer:read_numbers_all",
                        "dialer:release_numbers",
                        "dialer:update",
                        "domain:manage_dns",
                        "domain:purchase",
                        "domain:read",
                        "domain:transfer",
                        "emailVerification:manage_credits",
                        "emailVerification:manage_keys",
                        "emailVerification:manage_sharing",
                        "emailVerification:read",
                        "emailVerification:verify",
                        "inbox:connect",
                        "inbox:create",
                        "inbox:delete",
                        "inbox:read",
                        "inbox:update",
                        "inbox:warmup_manage",
                        "integration:create",
                        "integration:delete",
                        "integration:read",
                        "integration:update",
                        "lead:create",
                        "lead:delete",
                        "lead:export",
                        "lead:import",
                        "lead:read",
                        "lead:update",
                        "leadList:create",
                        "leadList:delete",
                        "leadList:read",
                        "leadList:update",
                        "phoneVerification:manage_keys",
                        "phoneVerification:read",
                        "phoneVerification:verify",
                        "replyLabel:create",
                        "replyLabel:delete",
                        "replyLabel:read",
                        "replyLabel:update",
                        "sequence:create",
                        "sequence:delete",
                        "sequence:read",
                        "sequence:update",
                        "sql:manage_dashboards",
                        "sql:query",
                        "support:create",
                        "support:read",
                        "support:update",
                        "tag:create",
                        "tag:delete",
                        "tag:read",
                        "tag:update",
                        "task:create",
                        "task:delete",
                        "task:read",
                        "task:update",
                        "template:create",
                        "template:delete",
                        "template:read",
                        "template:update",
                        "unibox:archive",
                        "unibox:label",
                        "unibox:read",
                        "unibox:reply",
                        "webhook:create",
                        "webhook:delete",
                        "webhook:read",
                        "webhook:update",
                        "whiteLabel:read",
                        "whiteLabel:update",
                        "workflow:create",
                        "workflow:delete",
                        "workflow:publish",
                        "workflow:read",
                        "workflow:run",
                        "workflow:update",
                        "workspace:read",
                        "workspace:update",
                        "workspaceMember:invite",
                        "workspaceMember:read",
                        "workspaceMember:remove",
                        "workspaceMember:update"
                      ]
                    },
                    "maxItems": 512
                  }
                },
                "required": [
                  "workspaceId",
                  "roles",
                  "direct"
                ],
                "patternProperties": {
                  "^(?!(?:workspaceId|roles|direct)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "roles",
                    "direct"
                  ]
                }
              },
              "maxItems": 500
            }
          },
          "required": [
            "action",
            "organizationId",
            "userId"
          ],
          "patternProperties": {
            "^(?!(?:action|organizationId|userId|organization|allWorkspaces|workspaces)$)[\\s\\S]*$": false
          },
          "additionalProperties": true,
          "propertyNames": {
            "type": "string",
            "enum": [
              "action",
              "organizationId",
              "userId",
              "organization",
              "allWorkspaces",
              "workspaces"
            ]
          }
        },
        {
          "type": "object",
          "properties": {
            "action": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "remove"
                  ]
                }
              ]
            },
            "organizationId": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            },
            "userId": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            }
          },
          "required": [
            "action",
            "organizationId",
            "userId"
          ],
          "patternProperties": {
            "^(?!(?:action|organizationId|userId)$)[\\s\\S]*$": false
          },
          "additionalProperties": true,
          "propertyNames": {
            "type": "string",
            "enum": [
              "action",
              "organizationId",
              "userId"
            ]
          }
        },
        {
          "type": "object",
          "properties": {
            "action": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "removeFromWorkspace"
                  ]
                }
              ]
            },
            "organizationId": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            },
            "workspaceId": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            },
            "userId": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            }
          },
          "required": [
            "action",
            "organizationId",
            "workspaceId",
            "userId"
          ],
          "patternProperties": {
            "^(?!(?:action|organizationId|workspaceId|userId)$)[\\s\\S]*$": false
          },
          "additionalProperties": true,
          "propertyNames": {
            "type": "string",
            "enum": [
              "action",
              "organizationId",
              "workspaceId",
              "userId"
            ]
          }
        }
      ]
    }
  }
}
```

### Input schema (OAuth / delegated agent)

```json
{
  "type": "object",
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "action": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "list"
              ]
            }
          ]
        },
        "organizationId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        }
      },
      "required": [
        "action",
        "organizationId"
      ],
      "patternProperties": {
        "^(?!(?:action|organizationId)$)[\\s\\S]*$": false
      },
      "additionalProperties": true,
      "propertyNames": {
        "type": "string",
        "enum": [
          "action",
          "organizationId"
        ]
      }
    },
    {
      "type": "object",
      "properties": {
        "action": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "listWorkspace"
              ]
            }
          ]
        },
        "organizationId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        },
        "workspaceId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        }
      },
      "required": [
        "action",
        "organizationId",
        "workspaceId"
      ],
      "patternProperties": {
        "^(?!(?:action|organizationId|workspaceId)$)[\\s\\S]*$": false
      },
      "additionalProperties": true,
      "propertyNames": {
        "type": "string",
        "enum": [
          "action",
          "organizationId",
          "workspaceId"
        ]
      }
    },
    {
      "type": "object",
      "properties": {
        "action": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "updateGrants"
              ]
            }
          ]
        },
        "organizationId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        },
        "userId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        },
        "organization": {
          "type": "object",
          "properties": {
            "roles": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/RoleId"
              },
              "maxItems": 32
            },
            "direct": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "audit:read",
                  "billing:manage",
                  "billing:read",
                  "org:delete",
                  "orgAnalytics:read",
                  "orgAnalytics:manage",
                  "org:read",
                  "org:update",
                  "orgApiKey:manage",
                  "orgMember:invite",
                  "orgMember:read",
                  "orgMember:remove",
                  "orgMember:update",
                  "role:manage",
                  "role:read",
                  "usage:read",
                  "workspace:create",
                  "workspace:delete",
                  "workspace:transfer"
                ]
              },
              "maxItems": 128
            }
          },
          "required": [
            "roles",
            "direct"
          ],
          "patternProperties": {
            "^(?!(?:roles|direct)$)[\\s\\S]*$": false
          },
          "additionalProperties": true,
          "propertyNames": {
            "type": "string",
            "enum": [
              "roles",
              "direct"
            ]
          }
        },
        "allWorkspaces": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "roles": {
                  "type": "array",
                  "items": {
                    "$ref": "#/$defs/RoleId"
                  },
                  "maxItems": 32
                },
                "direct": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "analytics:export",
                      "analytics:read",
                      "apiKey:create",
                      "apiKey:delete",
                      "apiKey:read",
                      "apiKey:update",
                      "blocklist:create",
                      "blocklist:delete",
                      "blocklist:read",
                      "campaign:archive",
                      "campaign:create",
                      "campaign:delete",
                      "campaign:launch",
                      "campaign:pause",
                      "campaign:read",
                      "campaign:update",
                      "dialer:assign_numbers",
                      "dialer:assign_seats",
                      "dialer:create",
                      "dialer:delete",
                      "dialer:dial",
                      "dialer:manage_billing",
                      "dialer:manage_number_health",
                      "dialer:manage_numbers",
                      "dialer:manage_numbers_self",
                      "dialer:manage_voicemails",
                      "dialer:read",
                      "dialer:read_analytics",
                      "dialer:read_numbers_all",
                      "dialer:release_numbers",
                      "dialer:update",
                      "domain:manage_dns",
                      "domain:purchase",
                      "domain:read",
                      "domain:transfer",
                      "emailVerification:manage_credits",
                      "emailVerification:manage_keys",
                      "emailVerification:manage_sharing",
                      "emailVerification:read",
                      "emailVerification:verify",
                      "inbox:connect",
                      "inbox:create",
                      "inbox:delete",
                      "inbox:read",
                      "inbox:update",
                      "inbox:warmup_manage",
                      "integration:create",
                      "integration:delete",
                      "integration:read",
                      "integration:update",
                      "lead:create",
                      "lead:delete",
                      "lead:export",
                      "lead:import",
                      "lead:read",
                      "lead:update",
                      "leadList:create",
                      "leadList:delete",
                      "leadList:read",
                      "leadList:update",
                      "phoneVerification:manage_keys",
                      "phoneVerification:read",
                      "phoneVerification:verify",
                      "replyLabel:create",
                      "replyLabel:delete",
                      "replyLabel:read",
                      "replyLabel:update",
                      "sequence:create",
                      "sequence:delete",
                      "sequence:read",
                      "sequence:update",
                      "sql:manage_dashboards",
                      "sql:query",
                      "support:create",
                      "support:read",
                      "support:update",
                      "tag:create",
                      "tag:delete",
                      "tag:read",
                      "tag:update",
                      "task:create",
                      "task:delete",
                      "task:read",
                      "task:update",
                      "template:create",
                      "template:delete",
                      "template:read",
                      "template:update",
                      "unibox:archive",
                      "unibox:label",
                      "unibox:read",
                      "unibox:reply",
                      "webhook:create",
                      "webhook:delete",
                      "webhook:read",
                      "webhook:update",
                      "whiteLabel:read",
                      "whiteLabel:update",
                      "workflow:create",
                      "workflow:delete",
                      "workflow:publish",
                      "workflow:read",
                      "workflow:run",
                      "workflow:update",
                      "workspace:read",
                      "workspace:update",
                      "workspaceMember:invite",
                      "workspaceMember:read",
                      "workspaceMember:remove",
                      "workspaceMember:update"
                    ]
                  },
                  "maxItems": 512
                }
              },
              "required": [
                "roles",
                "direct"
              ],
              "patternProperties": {
                "^(?!(?:roles|direct)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "roles",
                  "direct"
                ]
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "workspaces": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "workspaceId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "roles": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/RoleId"
                },
                "maxItems": 32
              },
              "direct": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "analytics:export",
                    "analytics:read",
                    "apiKey:create",
                    "apiKey:delete",
                    "apiKey:read",
                    "apiKey:update",
                    "blocklist:create",
                    "blocklist:delete",
                    "blocklist:read",
                    "campaign:archive",
                    "campaign:create",
                    "campaign:delete",
                    "campaign:launch",
                    "campaign:pause",
                    "campaign:read",
                    "campaign:update",
                    "dialer:assign_numbers",
                    "dialer:assign_seats",
                    "dialer:create",
                    "dialer:delete",
                    "dialer:dial",
                    "dialer:manage_billing",
                    "dialer:manage_number_health",
                    "dialer:manage_numbers",
                    "dialer:manage_numbers_self",
                    "dialer:manage_voicemails",
                    "dialer:read",
                    "dialer:read_analytics",
                    "dialer:read_numbers_all",
                    "dialer:release_numbers",
                    "dialer:update",
                    "domain:manage_dns",
                    "domain:purchase",
                    "domain:read",
                    "domain:transfer",
                    "emailVerification:manage_credits",
                    "emailVerification:manage_keys",
                    "emailVerification:manage_sharing",
                    "emailVerification:read",
                    "emailVerification:verify",
                    "inbox:connect",
                    "inbox:create",
                    "inbox:delete",
                    "inbox:read",
                    "inbox:update",
                    "inbox:warmup_manage",
                    "integration:create",
                    "integration:delete",
                    "integration:read",
                    "integration:update",
                    "lead:create",
                    "lead:delete",
                    "lead:export",
                    "lead:import",
                    "lead:read",
                    "lead:update",
                    "leadList:create",
                    "leadList:delete",
                    "leadList:read",
                    "leadList:update",
                    "phoneVerification:manage_keys",
                    "phoneVerification:read",
                    "phoneVerification:verify",
                    "replyLabel:create",
                    "replyLabel:delete",
                    "replyLabel:read",
                    "replyLabel:update",
                    "sequence:create",
                    "sequence:delete",
                    "sequence:read",
                    "sequence:update",
                    "sql:manage_dashboards",
                    "sql:query",
                    "support:create",
                    "support:read",
                    "support:update",
                    "tag:create",
                    "tag:delete",
                    "tag:read",
                    "tag:update",
                    "task:create",
                    "task:delete",
                    "task:read",
                    "task:update",
                    "template:create",
                    "template:delete",
                    "template:read",
                    "template:update",
                    "unibox:archive",
                    "unibox:label",
                    "unibox:read",
                    "unibox:reply",
                    "webhook:create",
                    "webhook:delete",
                    "webhook:read",
                    "webhook:update",
                    "whiteLabel:read",
                    "whiteLabel:update",
                    "workflow:create",
                    "workflow:delete",
                    "workflow:publish",
                    "workflow:read",
                    "workflow:run",
                    "workflow:update",
                    "workspace:read",
                    "workspace:update",
                    "workspaceMember:invite",
                    "workspaceMember:read",
                    "workspaceMember:remove",
                    "workspaceMember:update"
                  ]
                },
                "maxItems": 512
              }
            },
            "required": [
              "workspaceId",
              "roles",
              "direct"
            ],
            "patternProperties": {
              "^(?!(?:workspaceId|roles|direct)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "workspaceId",
                "roles",
                "direct"
              ]
            }
          },
          "maxItems": 500
        }
      },
      "required": [
        "action",
        "organizationId",
        "userId"
      ],
      "patternProperties": {
        "^(?!(?:action|organizationId|userId|organization|allWorkspaces|workspaces)$)[\\s\\S]*$": false
      },
      "additionalProperties": true,
      "propertyNames": {
        "type": "string",
        "enum": [
          "action",
          "organizationId",
          "userId",
          "organization",
          "allWorkspaces",
          "workspaces"
        ]
      }
    },
    {
      "type": "object",
      "properties": {
        "action": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "remove"
              ]
            }
          ]
        },
        "organizationId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        },
        "userId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        }
      },
      "required": [
        "action",
        "organizationId",
        "userId"
      ],
      "patternProperties": {
        "^(?!(?:action|organizationId|userId)$)[\\s\\S]*$": false
      },
      "additionalProperties": true,
      "propertyNames": {
        "type": "string",
        "enum": [
          "action",
          "organizationId",
          "userId"
        ]
      }
    },
    {
      "type": "object",
      "properties": {
        "action": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "removeFromWorkspace"
              ]
            }
          ]
        },
        "organizationId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        },
        "workspaceId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        },
        "userId": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid"
        }
      },
      "required": [
        "action",
        "organizationId",
        "workspaceId",
        "userId"
      ],
      "patternProperties": {
        "^(?!(?:action|organizationId|workspaceId|userId)$)[\\s\\S]*$": false
      },
      "additionalProperties": true,
      "propertyNames": {
        "type": "string",
        "enum": [
          "action",
          "organizationId",
          "workspaceId",
          "userId"
        ]
      }
    }
  ],
  "$defs": {
    "RoleId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512
    },
    "ManageOrganizationMembersInput": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "action": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "list"
                  ]
                }
              ]
            },
            "organizationId": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            }
          },
          "required": [
            "action",
            "organizationId"
          ],
          "patternProperties": {
            "^(?!(?:action|organizationId)$)[\\s\\S]*$": false
          },
          "additionalProperties": true,
          "propertyNames": {
            "type": "string",
            "enum": [
              "action",
              "organizationId"
            ]
          }
        },
        {
          "type": "object",
          "properties": {
            "action": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "listWorkspace"
                  ]
                }
              ]
            },
            "organizationId": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            },
            "workspaceId": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            }
          },
          "required": [
            "action",
            "organizationId",
            "workspaceId"
          ],
          "patternProperties": {
            "^(?!(?:action|organizationId|workspaceId)$)[\\s\\S]*$": false
          },
          "additionalProperties": true,
          "propertyNames": {
            "type": "string",
            "enum": [
              "action",
              "organizationId",
              "workspaceId"
            ]
          }
        },
        {
          "type": "object",
          "properties": {
            "action": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "updateGrants"
                  ]
                }
              ]
            },
            "organizationId": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            },
            "userId": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            },
            "organization": {
              "type": "object",
              "properties": {
                "roles": {
                  "type": "array",
                  "items": {
                    "$ref": "#/$defs/RoleId"
                  },
                  "maxItems": 32
                },
                "direct": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "audit:read",
                      "billing:manage",
                      "billing:read",
                      "org:delete",
                      "orgAnalytics:read",
                      "orgAnalytics:manage",
                      "org:read",
                      "org:update",
                      "orgApiKey:manage",
                      "orgMember:invite",
                      "orgMember:read",
                      "orgMember:remove",
                      "orgMember:update",
                      "role:manage",
                      "role:read",
                      "usage:read",
                      "workspace:create",
                      "workspace:delete",
                      "workspace:transfer"
                    ]
                  },
                  "maxItems": 128
                }
              },
              "required": [
                "roles",
                "direct"
              ],
              "patternProperties": {
                "^(?!(?:roles|direct)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "roles",
                  "direct"
                ]
              }
            },
            "allWorkspaces": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "roles": {
                      "type": "array",
                      "items": {
                        "$ref": "#/$defs/RoleId"
                      },
                      "maxItems": 32
                    },
                    "direct": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "analytics:export",
                          "analytics:read",
                          "apiKey:create",
                          "apiKey:delete",
                          "apiKey:read",
                          "apiKey:update",
                          "blocklist:create",
                          "blocklist:delete",
                          "blocklist:read",
                          "campaign:archive",
                          "campaign:create",
                          "campaign:delete",
                          "campaign:launch",
                          "campaign:pause",
                          "campaign:read",
                          "campaign:update",
                          "dialer:assign_numbers",
                          "dialer:assign_seats",
                          "dialer:create",
                          "dialer:delete",
                          "dialer:dial",
                          "dialer:manage_billing",
                          "dialer:manage_number_health",
                          "dialer:manage_numbers",
                          "dialer:manage_numbers_self",
                          "dialer:manage_voicemails",
                          "dialer:read",
                          "dialer:read_analytics",
                          "dialer:read_numbers_all",
                          "dialer:release_numbers",
                          "dialer:update",
                          "domain:manage_dns",
                          "domain:purchase",
                          "domain:read",
                          "domain:transfer",
                          "emailVerification:manage_credits",
                          "emailVerification:manage_keys",
                          "emailVerification:manage_sharing",
                          "emailVerification:read",
                          "emailVerification:verify",
                          "inbox:connect",
                          "inbox:create",
                          "inbox:delete",
                          "inbox:read",
                          "inbox:update",
                          "inbox:warmup_manage",
                          "integration:create",
                          "integration:delete",
                          "integration:read",
                          "integration:update",
                          "lead:create",
                          "lead:delete",
                          "lead:export",
                          "lead:import",
                          "lead:read",
                          "lead:update",
                          "leadList:create",
                          "leadList:delete",
                          "leadList:read",
                          "leadList:update",
                          "phoneVerification:manage_keys",
                          "phoneVerification:read",
                          "phoneVerification:verify",
                          "replyLabel:create",
                          "replyLabel:delete",
                          "replyLabel:read",
                          "replyLabel:update",
                          "sequence:create",
                          "sequence:delete",
                          "sequence:read",
                          "sequence:update",
                          "sql:manage_dashboards",
                          "sql:query",
                          "support:create",
                          "support:read",
                          "support:update",
                          "tag:create",
                          "tag:delete",
                          "tag:read",
                          "tag:update",
                          "task:create",
                          "task:delete",
                          "task:read",
                          "task:update",
                          "template:create",
                          "template:delete",
                          "template:read",
                          "template:update",
                          "unibox:archive",
                          "unibox:label",
                          "unibox:read",
                          "unibox:reply",
                          "webhook:create",
                          "webhook:delete",
                          "webhook:read",
                          "webhook:update",
                          "whiteLabel:read",
                          "whiteLabel:update",
                          "workflow:create",
                          "workflow:delete",
                          "workflow:publish",
                          "workflow:read",
                          "workflow:run",
                          "workflow:update",
                          "workspace:read",
                          "workspace:update",
                          "workspaceMember:invite",
                          "workspaceMember:read",
                          "workspaceMember:remove",
                          "workspaceMember:update"
                        ]
                      },
                      "maxItems": 512
                    }
                  },
                  "required": [
                    "roles",
                    "direct"
                  ],
                  "patternProperties": {
                    "^(?!(?:roles|direct)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "roles",
                      "direct"
                    ]
                  }
                },
                {
                  "type": "null"
                }
              ]
            },
            "workspaces": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "workspaceId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "roles": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/RoleId"
                    },
                    "maxItems": 32
                  },
                  "direct": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "analytics:export",
                        "analytics:read",
                        "apiKey:create",
                        "apiKey:delete",
                        "apiKey:read",
                        "apiKey:update",
                        "blocklist:create",
                        "blocklist:delete",
                        "blocklist:read",
                        "campaign:archive",
                        "campaign:create",
                        "campaign:delete",
                        "campaign:launch",
                        "campaign:pause",
                        "campaign:read",
                        "campaign:update",
                        "dialer:assign_numbers",
                        "dialer:assign_seats",
                        "dialer:create",
                        "dialer:delete",
                        "dialer:dial",
                        "dialer:manage_billing",
                        "dialer:manage_number_health",
                        "dialer:manage_numbers",
                        "dialer:manage_numbers_self",
                        "dialer:manage_voicemails",
                        "dialer:read",
                        "dialer:read_analytics",
                        "dialer:read_numbers_all",
                        "dialer:release_numbers",
                        "dialer:update",
                        "domain:manage_dns",
                        "domain:purchase",
                        "domain:read",
                        "domain:transfer",
                        "emailVerification:manage_credits",
                        "emailVerification:manage_keys",
                        "emailVerification:manage_sharing",
                        "emailVerification:read",
                        "emailVerification:verify",
                        "inbox:connect",
                        "inbox:create",
                        "inbox:delete",
                        "inbox:read",
                        "inbox:update",
                        "inbox:warmup_manage",
                        "integration:create",
                        "integration:delete",
                        "integration:read",
                        "integration:update",
                        "lead:create",
                        "lead:delete",
                        "lead:export",
                        "lead:import",
                        "lead:read",
                        "lead:update",
                        "leadList:create",
                        "leadList:delete",
                        "leadList:read",
                        "leadList:update",
                        "phoneVerification:manage_keys",
                        "phoneVerification:read",
                        "phoneVerification:verify",
                        "replyLabel:create",
                        "replyLabel:delete",
                        "replyLabel:read",
                        "replyLabel:update",
                        "sequence:create",
                        "sequence:delete",
                        "sequence:read",
                        "sequence:update",
                        "sql:manage_dashboards",
                        "sql:query",
                        "support:create",
                        "support:read",
                        "support:update",
                        "tag:create",
                        "tag:delete",
                        "tag:read",
                        "tag:update",
                        "task:create",
                        "task:delete",
                        "task:read",
                        "task:update",
                        "template:create",
                        "template:delete",
                        "template:read",
                        "template:update",
                        "unibox:archive",
                        "unibox:label",
                        "unibox:read",
                        "unibox:reply",
                        "webhook:create",
                        "webhook:delete",
                        "webhook:read",
                        "webhook:update",
                        "whiteLabel:read",
                        "whiteLabel:update",
                        "workflow:create",
                        "workflow:delete",
                        "workflow:publish",
                        "workflow:read",
                        "workflow:run",
                        "workflow:update",
                        "workspace:read",
                        "workspace:update",
                        "workspaceMember:invite",
                        "workspaceMember:read",
                        "workspaceMember:remove",
                        "workspaceMember:update"
                      ]
                    },
                    "maxItems": 512
                  }
                },
                "required": [
                  "workspaceId",
                  "roles",
                  "direct"
                ],
                "patternProperties": {
                  "^(?!(?:workspaceId|roles|direct)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "roles",
                    "direct"
                  ]
                }
              },
              "maxItems": 500
            }
          },
          "required": [
            "action",
            "organizationId",
            "userId"
          ],
          "patternProperties": {
            "^(?!(?:action|organizationId|userId|organization|allWorkspaces|workspaces)$)[\\s\\S]*$": false
          },
          "additionalProperties": true,
          "propertyNames": {
            "type": "string",
            "enum": [
              "action",
              "organizationId",
              "userId",
              "organization",
              "allWorkspaces",
              "workspaces"
            ]
          }
        },
        {
          "type": "object",
          "properties": {
            "action": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "remove"
                  ]
                }
              ]
            },
            "organizationId": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            },
            "userId": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            }
          },
          "required": [
            "action",
            "organizationId",
            "userId"
          ],
          "patternProperties": {
            "^(?!(?:action|organizationId|userId)$)[\\s\\S]*$": false
          },
          "additionalProperties": true,
          "propertyNames": {
            "type": "string",
            "enum": [
              "action",
              "organizationId",
              "userId"
            ]
          }
        },
        {
          "type": "object",
          "properties": {
            "action": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "removeFromWorkspace"
                  ]
                }
              ]
            },
            "organizationId": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            },
            "workspaceId": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            },
            "userId": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            }
          },
          "required": [
            "action",
            "organizationId",
            "workspaceId",
            "userId"
          ],
          "patternProperties": {
            "^(?!(?:action|organizationId|workspaceId|userId)$)[\\s\\S]*$": false
          },
          "additionalProperties": true,
          "propertyNames": {
            "type": "string",
            "enum": [
              "action",
              "organizationId",
              "workspaceId",
              "userId"
            ]
          }
        }
      ]
    }
  }
}
```

### Output schema (structuredContent)

```json
{
  "$defs": {
    "RoleId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512
    },
    "ManageOrganizationMembersOutput": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "userId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "name": {
                "type": "string"
              },
              "email": {
                "type": "string"
              },
              "image": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "isOwner": {
                "type": "boolean"
              },
              "organization": {
                "type": "object",
                "properties": {
                  "roles": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/RoleId"
                    },
                    "maxItems": 32
                  },
                  "direct": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "audit:read",
                        "billing:manage",
                        "billing:read",
                        "org:delete",
                        "orgAnalytics:read",
                        "orgAnalytics:manage",
                        "org:read",
                        "org:update",
                        "orgApiKey:manage",
                        "orgMember:invite",
                        "orgMember:read",
                        "orgMember:remove",
                        "orgMember:update",
                        "role:manage",
                        "role:read",
                        "usage:read",
                        "workspace:create",
                        "workspace:delete",
                        "workspace:transfer"
                      ]
                    },
                    "maxItems": 128
                  }
                },
                "required": [
                  "roles",
                  "direct"
                ],
                "patternProperties": {
                  "^(?!(?:roles|direct)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "roles",
                    "direct"
                  ]
                }
              },
              "allWorkspaces": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "roles": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/RoleId"
                        },
                        "maxItems": 32
                      },
                      "direct": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "analytics:export",
                            "analytics:read",
                            "apiKey:create",
                            "apiKey:delete",
                            "apiKey:read",
                            "apiKey:update",
                            "blocklist:create",
                            "blocklist:delete",
                            "blocklist:read",
                            "campaign:archive",
                            "campaign:create",
                            "campaign:delete",
                            "campaign:launch",
                            "campaign:pause",
                            "campaign:read",
                            "campaign:update",
                            "dialer:assign_numbers",
                            "dialer:assign_seats",
                            "dialer:create",
                            "dialer:delete",
                            "dialer:dial",
                            "dialer:manage_billing",
                            "dialer:manage_number_health",
                            "dialer:manage_numbers",
                            "dialer:manage_numbers_self",
                            "dialer:manage_voicemails",
                            "dialer:read",
                            "dialer:read_analytics",
                            "dialer:read_numbers_all",
                            "dialer:release_numbers",
                            "dialer:update",
                            "domain:manage_dns",
                            "domain:purchase",
                            "domain:read",
                            "domain:transfer",
                            "emailVerification:manage_credits",
                            "emailVerification:manage_keys",
                            "emailVerification:manage_sharing",
                            "emailVerification:read",
                            "emailVerification:verify",
                            "inbox:connect",
                            "inbox:create",
                            "inbox:delete",
                            "inbox:read",
                            "inbox:update",
                            "inbox:warmup_manage",
                            "integration:create",
                            "integration:delete",
                            "integration:read",
                            "integration:update",
                            "lead:create",
                            "lead:delete",
                            "lead:export",
                            "lead:import",
                            "lead:read",
                            "lead:update",
                            "leadList:create",
                            "leadList:delete",
                            "leadList:read",
                            "leadList:update",
                            "phoneVerification:manage_keys",
                            "phoneVerification:read",
                            "phoneVerification:verify",
                            "replyLabel:create",
                            "replyLabel:delete",
                            "replyLabel:read",
                            "replyLabel:update",
                            "sequence:create",
                            "sequence:delete",
                            "sequence:read",
                            "sequence:update",
                            "sql:manage_dashboards",
                            "sql:query",
                            "support:create",
                            "support:read",
                            "support:update",
                            "tag:create",
                            "tag:delete",
                            "tag:read",
                            "tag:update",
                            "task:create",
                            "task:delete",
                            "task:read",
                            "task:update",
                            "template:create",
                            "template:delete",
                            "template:read",
                            "template:update",
                            "unibox:archive",
                            "unibox:label",
                            "unibox:read",
                            "unibox:reply",
                            "webhook:create",
                            "webhook:delete",
                            "webhook:read",
                            "webhook:update",
                            "whiteLabel:read",
                            "whiteLabel:update",
                            "workflow:create",
                            "workflow:delete",
                            "workflow:publish",
                            "workflow:read",
                            "workflow:run",
                            "workflow:update",
                            "workspace:read",
                            "workspace:update",
                            "workspaceMember:invite",
                            "workspaceMember:read",
                            "workspaceMember:remove",
                            "workspaceMember:update"
                          ]
                        },
                        "maxItems": 512
                      }
                    },
                    "required": [
                      "roles",
                      "direct"
                    ],
                    "patternProperties": {
                      "^(?!(?:roles|direct)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "roles",
                        "direct"
                      ]
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "workspaces": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "workspaceId": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "roles": {
                      "type": "array",
                      "items": {
                        "$ref": "#/$defs/RoleId"
                      },
                      "maxItems": 32
                    },
                    "direct": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "analytics:export",
                          "analytics:read",
                          "apiKey:create",
                          "apiKey:delete",
                          "apiKey:read",
                          "apiKey:update",
                          "blocklist:create",
                          "blocklist:delete",
                          "blocklist:read",
                          "campaign:archive",
                          "campaign:create",
                          "campaign:delete",
                          "campaign:launch",
                          "campaign:pause",
                          "campaign:read",
                          "campaign:update",
                          "dialer:assign_numbers",
                          "dialer:assign_seats",
                          "dialer:create",
                          "dialer:delete",
                          "dialer:dial",
                          "dialer:manage_billing",
                          "dialer:manage_number_health",
                          "dialer:manage_numbers",
                          "dialer:manage_numbers_self",
                          "dialer:manage_voicemails",
                          "dialer:read",
                          "dialer:read_analytics",
                          "dialer:read_numbers_all",
                          "dialer:release_numbers",
                          "dialer:update",
                          "domain:manage_dns",
                          "domain:purchase",
                          "domain:read",
                          "domain:transfer",
                          "emailVerification:manage_credits",
                          "emailVerification:manage_keys",
                          "emailVerification:manage_sharing",
                          "emailVerification:read",
                          "emailVerification:verify",
                          "inbox:connect",
                          "inbox:create",
                          "inbox:delete",
                          "inbox:read",
                          "inbox:update",
                          "inbox:warmup_manage",
                          "integration:create",
                          "integration:delete",
                          "integration:read",
                          "integration:update",
                          "lead:create",
                          "lead:delete",
                          "lead:export",
                          "lead:import",
                          "lead:read",
                          "lead:update",
                          "leadList:create",
                          "leadList:delete",
                          "leadList:read",
                          "leadList:update",
                          "phoneVerification:manage_keys",
                          "phoneVerification:read",
                          "phoneVerification:verify",
                          "replyLabel:create",
                          "replyLabel:delete",
                          "replyLabel:read",
                          "replyLabel:update",
                          "sequence:create",
                          "sequence:delete",
                          "sequence:read",
                          "sequence:update",
                          "sql:manage_dashboards",
                          "sql:query",
                          "support:create",
                          "support:read",
                          "support:update",
                          "tag:create",
                          "tag:delete",
                          "tag:read",
                          "tag:update",
                          "task:create",
                          "task:delete",
                          "task:read",
                          "task:update",
                          "template:create",
                          "template:delete",
                          "template:read",
                          "template:update",
                          "unibox:archive",
                          "unibox:label",
                          "unibox:read",
                          "unibox:reply",
                          "webhook:create",
                          "webhook:delete",
                          "webhook:read",
                          "webhook:update",
                          "whiteLabel:read",
                          "whiteLabel:update",
                          "workflow:create",
                          "workflow:delete",
                          "workflow:publish",
                          "workflow:read",
                          "workflow:run",
                          "workflow:update",
                          "workspace:read",
                          "workspace:update",
                          "workspaceMember:invite",
                          "workspaceMember:read",
                          "workspaceMember:remove",
                          "workspaceMember:update"
                        ]
                      },
                      "maxItems": 512
                    }
                  },
                  "required": [
                    "workspaceId",
                    "roles",
                    "direct"
                  ],
                  "patternProperties": {
                    "^(?!(?:workspaceId|roles|direct)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "workspaceId",
                      "roles",
                      "direct"
                    ]
                  }
                }
              },
              "manageable": {
                "type": "boolean"
              }
            },
            "required": [
              "userId",
              "name",
              "email",
              "image",
              "isOwner",
              "organization",
              "allWorkspaces",
              "workspaces",
              "manageable"
            ],
            "patternProperties": {
              "^(?!(?:userId|name|email|image|isOwner|organization|allWorkspaces|workspaces|manageable)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "userId",
                "name",
                "email",
                "image",
                "isOwner",
                "organization",
                "allWorkspaces",
                "workspaces",
                "manageable"
              ]
            }
          }
        },
        {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "userId": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "name": {
                "type": "string"
              },
              "email": {
                "type": "string"
              },
              "image": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "isOwner": {
                "type": "boolean"
              },
              "grant": {
                "type": "object",
                "properties": {
                  "roles": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/RoleId"
                    },
                    "maxItems": 32
                  },
                  "direct": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "analytics:export",
                        "analytics:read",
                        "apiKey:create",
                        "apiKey:delete",
                        "apiKey:read",
                        "apiKey:update",
                        "blocklist:create",
                        "blocklist:delete",
                        "blocklist:read",
                        "campaign:archive",
                        "campaign:create",
                        "campaign:delete",
                        "campaign:launch",
                        "campaign:pause",
                        "campaign:read",
                        "campaign:update",
                        "dialer:assign_numbers",
                        "dialer:assign_seats",
                        "dialer:create",
                        "dialer:delete",
                        "dialer:dial",
                        "dialer:manage_billing",
                        "dialer:manage_number_health",
                        "dialer:manage_numbers",
                        "dialer:manage_numbers_self",
                        "dialer:manage_voicemails",
                        "dialer:read",
                        "dialer:read_analytics",
                        "dialer:read_numbers_all",
                        "dialer:release_numbers",
                        "dialer:update",
                        "domain:manage_dns",
                        "domain:purchase",
                        "domain:read",
                        "domain:transfer",
                        "emailVerification:manage_credits",
                        "emailVerification:manage_keys",
                        "emailVerification:manage_sharing",
                        "emailVerification:read",
                        "emailVerification:verify",
                        "inbox:connect",
                        "inbox:create",
                        "inbox:delete",
                        "inbox:read",
                        "inbox:update",
                        "inbox:warmup_manage",
                        "integration:create",
                        "integration:delete",
                        "integration:read",
                        "integration:update",
                        "lead:create",
                        "lead:delete",
                        "lead:export",
                        "lead:import",
                        "lead:read",
                        "lead:update",
                        "leadList:create",
                        "leadList:delete",
                        "leadList:read",
                        "leadList:update",
                        "phoneVerification:manage_keys",
                        "phoneVerification:read",
                        "phoneVerification:verify",
                        "replyLabel:create",
                        "replyLabel:delete",
                        "replyLabel:read",
                        "replyLabel:update",
                        "sequence:create",
                        "sequence:delete",
                        "sequence:read",
                        "sequence:update",
                        "sql:manage_dashboards",
                        "sql:query",
                        "support:create",
                        "support:read",
                        "support:update",
                        "tag:create",
                        "tag:delete",
                        "tag:read",
                        "tag:update",
                        "task:create",
                        "task:delete",
                        "task:read",
                        "task:update",
                        "template:create",
                        "template:delete",
                        "template:read",
                        "template:update",
                        "unibox:archive",
                        "unibox:label",
                        "unibox:read",
                        "unibox:reply",
                        "webhook:create",
                        "webhook:delete",
                        "webhook:read",
                        "webhook:update",
                        "whiteLabel:read",
                        "whiteLabel:update",
                        "workflow:create",
                        "workflow:delete",
                        "workflow:publish",
                        "workflow:read",
                        "workflow:run",
                        "workflow:update",
                        "workspace:read",
                        "workspace:update",
                        "workspaceMember:invite",
                        "workspaceMember:read",
                        "workspaceMember:remove",
                        "workspaceMember:update"
                      ]
                    },
                    "maxItems": 512
                  }
                },
                "required": [
                  "roles",
                  "direct"
                ],
                "patternProperties": {
                  "^(?!(?:roles|direct)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "roles",
                    "direct"
                  ]
                }
              },
              "permissions": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "analytics:export",
                    "analytics:read",
                    "apiKey:create",
                    "apiKey:delete",
                    "apiKey:read",
                    "apiKey:update",
                    "blocklist:create",
                    "blocklist:delete",
                    "blocklist:read",
                    "campaign:archive",
                    "campaign:create",
                    "campaign:delete",
                    "campaign:launch",
                    "campaign:pause",
                    "campaign:read",
                    "campaign:update",
                    "dialer:assign_numbers",
                    "dialer:assign_seats",
                    "dialer:create",
                    "dialer:delete",
                    "dialer:dial",
                    "dialer:manage_billing",
                    "dialer:manage_number_health",
                    "dialer:manage_numbers",
                    "dialer:manage_numbers_self",
                    "dialer:manage_voicemails",
                    "dialer:read",
                    "dialer:read_analytics",
                    "dialer:read_numbers_all",
                    "dialer:release_numbers",
                    "dialer:update",
                    "domain:manage_dns",
                    "domain:purchase",
                    "domain:read",
                    "domain:transfer",
                    "emailVerification:manage_credits",
                    "emailVerification:manage_keys",
                    "emailVerification:manage_sharing",
                    "emailVerification:read",
                    "emailVerification:verify",
                    "inbox:connect",
                    "inbox:create",
                    "inbox:delete",
                    "inbox:read",
                    "inbox:update",
                    "inbox:warmup_manage",
                    "integration:create",
                    "integration:delete",
                    "integration:read",
                    "integration:update",
                    "lead:create",
                    "lead:delete",
                    "lead:export",
                    "lead:import",
                    "lead:read",
                    "lead:update",
                    "leadList:create",
                    "leadList:delete",
                    "leadList:read",
                    "leadList:update",
                    "phoneVerification:manage_keys",
                    "phoneVerification:read",
                    "phoneVerification:verify",
                    "replyLabel:create",
                    "replyLabel:delete",
                    "replyLabel:read",
                    "replyLabel:update",
                    "sequence:create",
                    "sequence:delete",
                    "sequence:read",
                    "sequence:update",
                    "sql:manage_dashboards",
                    "sql:query",
                    "support:create",
                    "support:read",
                    "support:update",
                    "tag:create",
                    "tag:delete",
                    "tag:read",
                    "tag:update",
                    "task:create",
                    "task:delete",
                    "task:read",
                    "task:update",
                    "template:create",
                    "template:delete",
                    "template:read",
                    "template:update",
                    "unibox:archive",
                    "unibox:label",
                    "unibox:read",
                    "unibox:reply",
                    "webhook:create",
                    "webhook:delete",
                    "webhook:read",
                    "webhook:update",
                    "whiteLabel:read",
                    "whiteLabel:update",
                    "workflow:create",
                    "workflow:delete",
                    "workflow:publish",
                    "workflow:read",
                    "workflow:run",
                    "workflow:update",
                    "workspace:read",
                    "workspace:update",
                    "workspaceMember:invite",
                    "workspaceMember:read",
                    "workspaceMember:remove",
                    "workspaceMember:update"
                  ]
                }
              },
              "inherited": {
                "type": "boolean"
              },
              "manageable": {
                "type": "boolean"
              }
            },
            "required": [
              "userId",
              "name",
              "email",
              "image",
              "isOwner",
              "grant",
              "permissions",
              "inherited",
              "manageable"
            ],
            "patternProperties": {
              "^(?!(?:userId|name|email|image|isOwner|grant|permissions|inherited|manageable)$)[\\s\\S]*$": false
            },
            "additionalProperties": true,
            "propertyNames": {
              "type": "string",
              "enum": [
                "userId",
                "name",
                "email",
                "image",
                "isOwner",
                "grant",
                "permissions",
                "inherited",
                "manageable"
              ]
            }
          }
        },
        {
          "type": "object",
          "properties": {
            "userId": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            },
            "name": {
              "type": "string"
            },
            "email": {
              "type": "string"
            },
            "image": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "isOwner": {
              "type": "boolean"
            },
            "organization": {
              "type": "object",
              "properties": {
                "roles": {
                  "type": "array",
                  "items": {
                    "$ref": "#/$defs/RoleId"
                  },
                  "maxItems": 32
                },
                "direct": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "audit:read",
                      "billing:manage",
                      "billing:read",
                      "org:delete",
                      "orgAnalytics:read",
                      "orgAnalytics:manage",
                      "org:read",
                      "org:update",
                      "orgApiKey:manage",
                      "orgMember:invite",
                      "orgMember:read",
                      "orgMember:remove",
                      "orgMember:update",
                      "role:manage",
                      "role:read",
                      "usage:read",
                      "workspace:create",
                      "workspace:delete",
                      "workspace:transfer"
                    ]
                  },
                  "maxItems": 128
                }
              },
              "required": [
                "roles",
                "direct"
              ],
              "patternProperties": {
                "^(?!(?:roles|direct)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "roles",
                  "direct"
                ]
              }
            },
            "allWorkspaces": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "roles": {
                      "type": "array",
                      "items": {
                        "$ref": "#/$defs/RoleId"
                      },
                      "maxItems": 32
                    },
                    "direct": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "analytics:export",
                          "analytics:read",
                          "apiKey:create",
                          "apiKey:delete",
                          "apiKey:read",
                          "apiKey:update",
                          "blocklist:create",
                          "blocklist:delete",
                          "blocklist:read",
                          "campaign:archive",
                          "campaign:create",
                          "campaign:delete",
                          "campaign:launch",
                          "campaign:pause",
                          "campaign:read",
                          "campaign:update",
                          "dialer:assign_numbers",
                          "dialer:assign_seats",
                          "dialer:create",
                          "dialer:delete",
                          "dialer:dial",
                          "dialer:manage_billing",
                          "dialer:manage_number_health",
                          "dialer:manage_numbers",
                          "dialer:manage_numbers_self",
                          "dialer:manage_voicemails",
                          "dialer:read",
                          "dialer:read_analytics",
                          "dialer:read_numbers_all",
                          "dialer:release_numbers",
                          "dialer:update",
                          "domain:manage_dns",
                          "domain:purchase",
                          "domain:read",
                          "domain:transfer",
                          "emailVerification:manage_credits",
                          "emailVerification:manage_keys",
                          "emailVerification:manage_sharing",
                          "emailVerification:read",
                          "emailVerification:verify",
                          "inbox:connect",
                          "inbox:create",
                          "inbox:delete",
                          "inbox:read",
                          "inbox:update",
                          "inbox:warmup_manage",
                          "integration:create",
                          "integration:delete",
                          "integration:read",
                          "integration:update",
                          "lead:create",
                          "lead:delete",
                          "lead:export",
                          "lead:import",
                          "lead:read",
                          "lead:update",
                          "leadList:create",
                          "leadList:delete",
                          "leadList:read",
                          "leadList:update",
                          "phoneVerification:manage_keys",
                          "phoneVerification:read",
                          "phoneVerification:verify",
                          "replyLabel:create",
                          "replyLabel:delete",
                          "replyLabel:read",
                          "replyLabel:update",
                          "sequence:create",
                          "sequence:delete",
                          "sequence:read",
                          "sequence:update",
                          "sql:manage_dashboards",
                          "sql:query",
                          "support:create",
                          "support:read",
                          "support:update",
                          "tag:create",
                          "tag:delete",
                          "tag:read",
                          "tag:update",
                          "task:create",
                          "task:delete",
                          "task:read",
                          "task:update",
                          "template:create",
                          "template:delete",
                          "template:read",
                          "template:update",
                          "unibox:archive",
                          "unibox:label",
                          "unibox:read",
                          "unibox:reply",
                          "webhook:create",
                          "webhook:delete",
                          "webhook:read",
                          "webhook:update",
                          "whiteLabel:read",
                          "whiteLabel:update",
                          "workflow:create",
                          "workflow:delete",
                          "workflow:publish",
                          "workflow:read",
                          "workflow:run",
                          "workflow:update",
                          "workspace:read",
                          "workspace:update",
                          "workspaceMember:invite",
                          "workspaceMember:read",
                          "workspaceMember:remove",
                          "workspaceMember:update"
                        ]
                      },
                      "maxItems": 512
                    }
                  },
                  "required": [
                    "roles",
                    "direct"
                  ],
                  "patternProperties": {
                    "^(?!(?:roles|direct)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "roles",
                      "direct"
                    ]
                  }
                },
                {
                  "type": "null"
                }
              ]
            },
            "workspaces": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "workspaceId": {
                    "type": "string",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                    "format": "uuid"
                  },
                  "roles": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/RoleId"
                    },
                    "maxItems": 32
                  },
                  "direct": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "analytics:export",
                        "analytics:read",
                        "apiKey:create",
                        "apiKey:delete",
                        "apiKey:read",
                        "apiKey:update",
                        "blocklist:create",
                        "blocklist:delete",
                        "blocklist:read",
                        "campaign:archive",
                        "campaign:create",
                        "campaign:delete",
                        "campaign:launch",
                        "campaign:pause",
                        "campaign:read",
                        "campaign:update",
                        "dialer:assign_numbers",
                        "dialer:assign_seats",
                        "dialer:create",
                        "dialer:delete",
                        "dialer:dial",
                        "dialer:manage_billing",
                        "dialer:manage_number_health",
                        "dialer:manage_numbers",
                        "dialer:manage_numbers_self",
                        "dialer:manage_voicemails",
                        "dialer:read",
                        "dialer:read_analytics",
                        "dialer:read_numbers_all",
                        "dialer:release_numbers",
                        "dialer:update",
                        "domain:manage_dns",
                        "domain:purchase",
                        "domain:read",
                        "domain:transfer",
                        "emailVerification:manage_credits",
                        "emailVerification:manage_keys",
                        "emailVerification:manage_sharing",
                        "emailVerification:read",
                        "emailVerification:verify",
                        "inbox:connect",
                        "inbox:create",
                        "inbox:delete",
                        "inbox:read",
                        "inbox:update",
                        "inbox:warmup_manage",
                        "integration:create",
                        "integration:delete",
                        "integration:read",
                        "integration:update",
                        "lead:create",
                        "lead:delete",
                        "lead:export",
                        "lead:import",
                        "lead:read",
                        "lead:update",
                        "leadList:create",
                        "leadList:delete",
                        "leadList:read",
                        "leadList:update",
                        "phoneVerification:manage_keys",
                        "phoneVerification:read",
                        "phoneVerification:verify",
                        "replyLabel:create",
                        "replyLabel:delete",
                        "replyLabel:read",
                        "replyLabel:update",
                        "sequence:create",
                        "sequence:delete",
                        "sequence:read",
                        "sequence:update",
                        "sql:manage_dashboards",
                        "sql:query",
                        "support:create",
                        "support:read",
                        "support:update",
                        "tag:create",
                        "tag:delete",
                        "tag:read",
                        "tag:update",
                        "task:create",
                        "task:delete",
                        "task:read",
                        "task:update",
                        "template:create",
                        "template:delete",
                        "template:read",
                        "template:update",
                        "unibox:archive",
                        "unibox:label",
                        "unibox:read",
                        "unibox:reply",
                        "webhook:create",
                        "webhook:delete",
                        "webhook:read",
                        "webhook:update",
                        "whiteLabel:read",
                        "whiteLabel:update",
                        "workflow:create",
                        "workflow:delete",
                        "workflow:publish",
                        "workflow:read",
                        "workflow:run",
                        "workflow:update",
                        "workspace:read",
                        "workspace:update",
                        "workspaceMember:invite",
                        "workspaceMember:read",
                        "workspaceMember:remove",
                        "workspaceMember:update"
                      ]
                    },
                    "maxItems": 512
                  }
                },
                "required": [
                  "workspaceId",
                  "roles",
                  "direct"
                ],
                "patternProperties": {
                  "^(?!(?:workspaceId|roles|direct)$)[\\s\\S]*$": false
                },
                "additionalProperties": true,
                "propertyNames": {
                  "type": "string",
                  "enum": [
                    "workspaceId",
                    "roles",
                    "direct"
                  ]
                }
              }
            },
            "manageable": {
              "type": "boolean"
            }
          },
          "required": [
            "userId",
            "name",
            "email",
            "image",
            "isOwner",
            "organization",
            "allWorkspaces",
            "workspaces",
            "manageable"
          ],
          "patternProperties": {
            "^(?!(?:userId|name|email|image|isOwner|organization|allWorkspaces|workspaces|manageable)$)[\\s\\S]*$": false
          },
          "additionalProperties": true,
          "propertyNames": {
            "type": "string",
            "enum": [
              "userId",
              "name",
              "email",
              "image",
              "isOwner",
              "organization",
              "allWorkspaces",
              "workspaces",
              "manageable"
            ]
          }
        },
        {
          "type": "object",
          "properties": {
            "removed": {
              "anyOf": [
                {
                  "type": "boolean",
                  "enum": [
                    true
                  ]
                }
              ]
            }
          },
          "required": [
            "removed"
          ],
          "patternProperties": {
            "^(?!(?:removed)$)[\\s\\S]*$": false
          },
          "additionalProperties": true,
          "propertyNames": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "removed"
                ]
              }
            ]
          }
        }
      ]
    }
  },
  "type": "object",
  "anyOf": [
    {
      "allOf": [
        {
          "$ref": "#/$defs/ManageOrganizationMembersOutput"
        },
        {
          "type": "object"
        }
      ]
    },
    {
      "type": "object",
      "properties": {
        "data": {
          "allOf": [
            {
              "$ref": "#/$defs/ManageOrganizationMembersOutput"
            },
            {
              "not": {
                "type": "object"
              }
            }
          ]
        }
      },
      "required": [
        "data"
      ],
      "additionalProperties": false
    }
  ]
}
```

### Underlying API operations

- `organizationAccess.listMembers`: `GET /v1/organizations/:organizationId/members`
- `organizationAccess.listWorkspaceMembers`: `GET /v1/organizations/:organizationId/workspaces/:workspaceId/members`
- `organizationAccess.updateMemberGrants`: `PUT /v1/organizations/:organizationId/members/:userId/grants`
- `organizationAccess.removeMember`: `DELETE /v1/organizations/:organizationId/members/:userId`
- `organizationAccess.removeWorkspaceMember`: `DELETE /v1/organizations/:organizationId/workspaces/:workspaceId/members/:userId`

