Skip to main content
Glama

haldir_revoke_session

Immediately revoke an active MCP session by session ID; idempotent, returning 404 if the session is already gone.

Instructions

Revoke a session immediately. Idempotent; returns 404 if already gone.

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

Input Schema

NameRequiredDescriptionDefault
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.3

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It does disclose two valuable traits — idempotency and a 404 outcome for a missing session — but says nothing about required permissions, whether downstream tokens or secrets issued to that session are also invalidated, or whether revocation is reversible. For an unannotated destructive mutation this leaves major gaps.

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?

Two compact clauses with zero waste, and the primary action is front-loaded ahead of the secondary idempotency/error note. Nothing could be trimmed without losing information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given a one-parameter mutation with no annotations and no output schema, the description covers purpose, repeat-call behavior, and the error case. It still leaves out authorization requirements and the blast radius of revocation, which matter for a security-sensitive session-termination tool.

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?

The schema has 0% description coverage and a single required parameter, session_id. The description never mentions the parameter or clarifies its expected form (opaque ID vs. token), so it compensates for none of the coverage gap; the only meaning available comes from the parameter name itself.

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 ("Revoke a session") with a scope qualifier ("immediately"), which reads clearly against siblings like haldir_create_session and haldir_get_session. It stops short of naming alternatives, but the action is unambiguous.

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 implied by the verb: call it to terminate a session. There is no statement of preconditions (does the caller need admin rights?), no guidance on when revocation is preferable to simply letting a session expire, and no mention of follow-up steps after revoking.

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