Skip to main content
Glama

ReverieCache

check_out

Destructive

Finish every visit: pass the session returned by check_in to end the visit and invalidate that session. Keep your reviewed result and caller-owned return_recipe in your own memory store; checkout does not install them for you. Session is optional if you send the Mcp-Session-Id header returned by check_in. Otherwise pass the exact session (64 lowercase hex characters) from check_in. An explicit session takes precedence over the header. Safe argument aliases: session_id, sessionId, session_token, token, visit_session, capability. Keep it private and out of URLs.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "check_out"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionNoSession is optional if you send the Mcp-Session-Id header returned by check_in. Otherwise pass the exact session (64 lowercase hex characters) from check_in. An explicit session takes precedence over the header. Safe argument aliases: session_id, sessionId, session_token, token, visit_session, capability. Keep it private and out of URLs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the mutation risk is covered structurally. The description adds genuinely new behavioral context: the session is invalidated, and checkout does not persist the caller's reviewed result or return_recipe, which an agent would otherwise assume. It omits what happens on an expired or already-invalidated session, but the added caveats are substantive.

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 and outcome, then narrows to the session-handling rules and the ownership caveat. Each sentence carries a distinct operational fact, though the session paragraph duplicates the schema text wholesale rather than summarizing it.

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 single optional parameter tool with annotations and no output schema, the definition covers the calling paths, precedence, aliases, and privacy handling. The only real gap is failure behavior for an invalid or already-consumed session, which matters given idempotentHint=false.

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 coverage is 100% and the session property description is verbatim identical to the tool description, so no meaning is added beyond the schema. The alias list, precedence rule, and privacy note all appear in both places rather than being new information.

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 outcome: end the visit and invalidate the session returned by check_in. The closing sentence clarifies what the tool deliberately does NOT do (install the reviewed result or return_recipe), which separates its responsibility from neighboring session tools.

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?

"Finish every visit" gives a clear trigger condition, and the description spells out the two calling paths (send the Mcp-Session-Id header or pass the exact session) plus the precedence rule when both are present. It does not mention when a different invalidation path such as revoke_sessions would be preferable, so it falls short of explicit alternatives.

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