Skip to main content
Glama

GhostKey — Route Paid APIs with x402

GhostKey Session Revoke

ghostkey_session_revoke
Destructive

Immediately revoke a GhostKey browser delegation session and cancel its queued work. The session's agent token stops working at once and no further actions can be relayed into the user's browser under it. Use it when a delegated task is finished, the permitted scope changes, or the session may be compromised. Revocation cannot be undone; a new session must be created (and paid for) instead.

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": {
      "session_id": "<session_id>",
      "agent_token": "<agent_token>"
    },
    "name": "ghostkey_session_revoke"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYesSession identifier (UUID) returned by ghostkey_session_create.
agent_tokenYesAgent token issued with the session at creation; authorizes revoking this session.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / agent_token / description
      Added value: +"Agent token issued with the session at creation; authorizes revoking this session."
    • addedInput schema / properties / session_id / description
      Added value: +"Session identifier (UUID) returned by ghostkey_session_create."
  2. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the destructiveHint and other annotations, the description discloses key consequences: the agent token stops working immediately, queued work is canceled, no further actions can be relayed, revocation is irreversible, and a new paid session is required. These details materially improve an agent's ability to reason about the side effects.

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?

The description is front-loaded with the core action, followed by consequences, usage triggers, and irreversibility warning. Every sentence adds useful information without repetition or waste.

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 destructive two-parameter operation with no output schema, the description covers the essential behavioral context: immediate effect, queued work cancellation, token invalidation, irreversibility, cost of replacement, and when to invoke it.

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

Parameters3/5

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

Schema description coverage is 100%, so the roles of session_id and agent_token are already documented in the schema. The description does not add parameter-specific semantics such as token authorization details beyond noting that the session's token stops working after revocation.

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?

The description states a specific verb and resource: 'revoke a GhostKey browser delegation session and cancel its queued work.' It clearly distinguishes revocation from sibling operations like create, status, and action by focusing on immediate termination of a delegated session.

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

Usage Guidelines4/5

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

The description gives explicit scenarios for use: when a delegated task is finished, permitted scope changes, or the session may be compromised. It also points to the alternative of creating a new session, but does not name a sibling tool or state explicit exclusions for when not to revoke.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources