Skip to main content
Glama

revoke_my_session

Revoke a single browser session by id. 404 if the id doesn't belong to the calling user (matches REST behavior: no leaking session existence). Mirrors DELETE /v1/me/sessions/{session_id}.

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": "revoke_my_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it delivers something valuable: a 404 (rather than an authorization error) when the id doesn't belong to the caller, explicitly to avoid leaking session existence. It still omits whether revoking the caller's own current session terminates their auth and whether repeat revocation is idempotent, so it is strong but not complete.

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?

Three tight sentences, front-loaded with the action, then the error semantics, then the REST mapping. The 'matches REST behavior' parenthetical is slightly redundant with the 'Mirrors DELETE /v1/me/sessions/{session_id}' sentence, but nothing else is wasted.

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 simple one-parameter mutation with an output schema available, the description covers the action and the failure mode well. The remaining gap is the side effect on the caller's own active session, which matters for a session-revocation tool.

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?

With only one parameter at 0% schema description coverage, the schema itself explains nothing beyond 'Session Id'. The description adds real meaning by constraining the id to sessions owned by the calling user, but it never says where such ids come from (for example, list_my_sessions) or the expected format.

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 plus resource and scope: 'Revoke a single browser session by id.' The word 'single' implicitly separates it from revoke_all_my_sessions, so an agent can tell the two apart 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 Guidelines3/5

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

Usage is only implied by the adjective 'single' and the 'by id' phrasing; there is no explicit when-to-use, when-not-to-use, or pointer to revoke_all_my_sessions as the bulk alternative. An agent must infer the selection rule rather than read it.

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