Skip to main content
Glama

Revoke the current session (by session token)

post_sessions_revoke

Revokes the session referenced by the internal SESSION Bearer token. This endpoint is useful for automation clients that only hold a session token and want to revoke it cleanly.

Source: POST /api/v1/sessions/revoke Requires auth.sessionToken and forwards it as a Bearer token. Prefer connection.workspaceName and connection.appId as stable config instead of generating identity fields dynamically.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
authNo
bodyNo
queryNo
paramsNo
connectionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden. It discloses that the tool performs a destructive session revocation and explains that auth.sessionToken is forwarded as a Bearer token, which is material to invoking the tool correctly. It stops short of describing response or error behavior.

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?

Three short sentences plus an endpoint source line carry the needed information with no fluff. The action is front-loaded, followed by use case, then technical details.

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 relatively simple revoke-by-token operation with empty body/query/params, the description covers the core inputs, endpoint, and use case. It does not describe the response or failure modes, but the tool's purpose and required authentication are sufficiently complete for invocation.

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 reported as 0%, so the description must compensate. It does by explaining how auth.sessionToken is used and by advising stable connection fields (workspaceName/appId) over dynamically generated identity fields. The phrase 'Requires auth.sessionToken' adds semantic requiredness even though the JSON schema lists it as optional.

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 first sentence names a specific action ('Revokes') and a specific resource ('the session referenced by the internal SESSION Bearer token'), clearly distinguishing this from sibling tools like post_sessions_revoke_session_id. The title reinforces the by-token selection criteria.

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?

It identifies the target use case: automation clients that hold only a session token and want to revoke it cleanly. It does not explicitly contrast with alternatives or say when not to use it, but the context is clear enough for an agent to route correctly.

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.