kms_revoke_grant
Revoke one principal's grant on a managed KMS key, across all its versions — that user or service token can no longer use the key, while everyone else keeps working. Use kms_disable_key instead to stop the key entirely. Removing a grant needs no key material, which is why it runs here. Returns { ok, keyId, principalId }.
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": {
"keyId": "<keyId>",
"principalType": "<principalType>",
"principalId": "<principalId>"
},
"name": "kms_revoke_grant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org | No | Organization slug or id. Omit it when the credential can reach exactly one org — that org is used automatically. With several, the error names every slug you may pass; list them yourself with list_orgs. | |
| keyId | Yes | The managed key's id, from kms_list_keys (the `id` field — `name` is a display label and is not accepted here). | |
| principalId | Yes | The principal's id — a `userId` from list_members, or a token `id` from list_tokens, matching principalType. | |
| principalType | Yes | What kind of principal to revoke: "user" for a human member (list_members) or "service_token" for a machine credential (list_tokens). |