Skip to main content
Glama

Revoke a session or agent token

colliedesk_session_revoke
Destructive

Sign out a session or revoke an agent token of the workspace, for example a lost laptop or a leaked token. It cannot be undone: the person signs in again, or makes a new token. Your own person's sessions and tokens need nothing more; another person's need team:revoke, and you cannot sign out someone who holds a permission you lack. To revoke the token you use now, call colliedesk_token_revoke. Before you call it, show the user what you will do and get their yes, unless they already told you to do exactly this.

Needs: nothing beyond a valid token.

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>"
    },
    "name": "colliedesk_session_revoke"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYesFrom colliedesk_sessions_list.

Output Schema

NameRequiredDescriptionDefault
revokedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, but the description adds genuinely new behavior: the action is irreversible, the affected person must sign in again or mint a new token, and the caller cannot sign out someone holding a permission they lack. The confirmation workflow and auth requirement ('Needs: nothing beyond a valid token') go well beyond the structured fields.

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

Conciseness4/5

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

Front-loaded with the action, then consequences, permissions, the alternative tool, and the confirmation step — a logical order with no filler. It is dense and slightly crowded with three separate instructions in one paragraph, which keeps it just short of a 5.

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 single-parameter tool with an output schema, everything an agent needs is present: irreversibility, permission gating, the sibling escape hatch, and the required user confirmation. Nothing material is missing.

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% and the single session_id parameter already documents its UUID pattern and provenance ('From colliedesk_sessions_list'). The description adds no further meaning about the parameter, so the baseline 3 applies.

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 pair — 'Sign out a session or revoke an agent token of the workspace' — and immediately differentiates from the sibling that handles the caller's own token by naming colliedesk_token_revoke. An agent can distinguish the two without opening either schema.

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 routes the agent: use colliedesk_token_revoke for the token in use now, and this tool for other sessions/tokens. It also states the permission split (own person's sessions need nothing more; another person's need team:revoke) and the human-in-the-loop rule requiring user confirmation before calling.

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