Skip to main content
Glama

revoke_delegation_grant

DestructiveIdempotent

Revoke a delegation grant along with every exchanged token and attenuated descendant, ensuring delegated access is fully terminated for a workspace.

Instructions

Revoke a delegation grant and every exchanged token and attenuated descendant. Requires token:admin.

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": {
      "workspace_id": "<workspace_id>",
      "grant_id": "<grant_id>"
    },
    "name": "revoke_delegation_grant"
  }
}

Input Schema

NameRequiredDescriptionDefault
grant_idYes
workspace_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is partly covered. The description still earns credit by disclosing the non-obvious cascade — exchanged tokens and attenuated descendants are destroyed too — plus the token:admin authorization requirement, which no annotation conveys.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, zero filler, with the destructive scope front-loaded and the auth prerequisite trailing. Nothing is redundant and nothing needs re-reading.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter destructive mutation with no output schema, the description covers the two things an agent cannot see elsewhere: the cascading destruction and the admin-token requirement. The remaining gap is parameter meaning, which is the one place an agent could still mis-call it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden for both parameters, yet it says nothing about workspace_id or grant_id beyond echoing 'grant' in prose. An agent must guess whether workspace_id scopes the lookup, is required for authorization, or affects which descendants are swept.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Revoke a delegation grant') and adds the exact blast radius: 'every exchanged token and attenuated descendant.' That cascade scope cleanly separates it from sibling mutations such as create_delegation_grant and from other revoke_* tools that target secrets, hooks, or tickets.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied by the verb and the stated prerequisite 'Requires token:admin' — an agent can infer this is the termination path for a delegation grant. There is no explicit when-to-use framing, no mention of how it relates to set_delegation_policy or attenuate_token, and no note about behavior on an already-revoked grant.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools