Revoke Invitation
revoke_invitationRevoke a pending invitation that includes the workspace (the current one unless workspaceId names another), so its link stops working. Confirm with the user first, naming the email it was sent to. Only the owner may revoke an invitation for an organization admin. Needs the members.manage permission, which Admin holds. Fails with 404 when no such invitation includes this workspace, and with 400 when it is no longer pending. Returns the invitation with status revoked.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "revoke_invitation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Invitation id from list_invitations or send_invitation | |
| workspaceId | No | Workspace to act in: an id from list_workspaces. Omit to act in the workspace list_workspaces marks current. Use the same workspaceId for every call about the same workspace, since ids from one workspace (accounts, posts, uploads) do not exist in another |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | The invitation: id, email, organizationId, organizationRole, status (pending, accepted, expired or revoked), workspaces [{ workspaceId, workspaceName, role }], expiresAt and createdAt. |