Skip to main content
Glama

Outbox: revocar un grant

outbox_revoke_grant
DestructiveIdempotent

Revokes a user-to-user grant by its ID, immediately removing the recipient's access. This action is destructive and irreversible; create a new grant to restore access.

Instructions

Revoca un grant user-to-user por su id (DELETE /api/grants/:id). El recipient pierde el acceso INMEDIATAMENTE. Cierra el par con outbox_create_grant / outbox_list_grants (tomá el id de outbox_list_grants). DESTRUCTIVO e irreversible: para volver a dar acceso creá un grant nuevo. Pedí confirmación al usuario antes de usarla. Idempotente (revocar dos veces → 404 grant_not_found; el estado final es el mismo).

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": {
      "grantId": "<grantId>"
    },
    "name": "outbox_revoke_grant"
  }
}

Input Schema

NameRequiredDescriptionDefault
grantIdYesId del grant a revocar (de outbox_list_grants)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, but the description adds what those hints cannot: the recipient loses access IMMEDIATELY, the effect is irreversible, and the way back is a fresh grant. It also discloses the concrete double-revoke behavior (404 grant_not_found with an unchanged final state), which turns the abstract idempotency hint into something an agent can reason about when retrying.

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?

Four sentences ordered by importance: what it does, immediate effect, correct call sequence, then the destruction/confirmation warning. Every clause carries information – endpoint, id source, irreversibility, retry semantics – with no restatement of the tool name or filler.

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

Completeness5/5

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

For a single-parameter mutation with no output schema, the description covers the full decision surface: where the id comes from, what happens on success, what happens on a repeat call, and the human-confirmation requirement. Nothing an agent needs to invoke it safely is missing.

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

Parameters4/5

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

Schema coverage is 100% and includes the hex pattern, so the schema already carries most of the burden. The description nonetheless adds provenance meaning – the id must come from outbox_list_grants and identifies a user-to-user grant – which is real value beyond the schema field name and pattern, though it stops short of anything a 3-baseline case would not cover.

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?

Names a specific verb and resource ('Revoca un grant user-to-user por su id') and even pins the underlying endpoint (DELETE /api/grants/:id). The 'user-to-user' qualifier plus the grant id makes it distinguishable from the adjacent share-revocation tool, so an agent knows exactly what object class this acts on.

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

Usage Guidelines5/5

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

Explicitly points to outbox_list_grants as the source of the id and frames the tool as the closing half of a create/list pair, so the agent knows the natural call sequence. It also states a gating condition ('Pedí confirmación al usuario antes de usarla') and the alternative for restoring access (create a new grant), leaving no when/when-not decision to inference.

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