Skip to main content
Glama

auth_logout

Destructive

Invalidate an admin or player session and clear its in-memory Cookie. Use it to end authenticated access for the selected role and prevent further requests with that session.

Instructions

Invalidate the chosen session and clear its in-memory Cookie.

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": {
      "role": "<role>"
    },
    "name": "auth_logout"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, and openWorldHint=true. The description usefully adds what is destroyed (the session is invalidated and the in-memory Cookie cleared), but does not say whether this affects only the calling session, whether the operation can fail silently, or whether authentication state is required.

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?

A single tight sentence with the verb front-loaded and no wasted words. Brevity is appropriate for a one-parameter tool, though the space saved could have been spent clarifying the role parameter.

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?

The tool is simple (one enum parameter), annotations carry the safety profile, and an output schema exists so return values need not be described. The only real hole is the unexplained role parameter, which alone keeps this below a 5.

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

Parameters2/5

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

Schema coverage is 0%, so the single required 'role' parameter (enum admin/player) is documented nowhere. The description says 'chosen session' but never explains that role selects which session is invalidated, leaving the only parameter's meaning to be guessed from the enum.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Invalidate the chosen session and clear its in-memory Cookie.' An agent can tell this is a session-termination tool distinct from sibling auth_login, though 'chosen session' is slightly ambiguous about whose session is chosen.

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

Usage Guidelines2/5

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

No when-to-use guidance, no mention of prerequisites (must be logged in), and no reference to alternatives such as auth_login for establishing a session or auth_requirements for checking auth state. The intent is inferable from the name but the description itself supplies no routing guidance.

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