Skip to main content
Glama

check_session

Destructive

Call a server's read-only tools as an agent would, validate each result against its output schema, and report tool-menu changes caused by each call.

Instructions

Call an MCP server's tools as an agent would and check what comes back: its tools marked readOnlyHint whose arguments the schema can fill are called, each result is checked against the tool's outputSchema, and the menu is listed after each call, with each change reported with the call that caused it. Calls only read-only tools; never one marked openWorldHint unless open_world is set. A command server is started by running command as given, so only pass a command you would run yourself.

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_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoFolder to run from: where the server starts, toolmenu.config.json is read and relative paths resolve. Default: where toolmenu mcp runs.
envNoEnvironment variables for a command server. It gets a minimal environment plus these.
urlNoA Streamable HTTP endpoint: https://example.com/mcp. Give this or command.
commandNoThe command that starts a stdio server, one word per item: ["node", "dist/server.js"]. Give this or url.
headersNoHTTP headers for a url server: {"Authorization": "Bearer ..."}.
max_callsNoAt most this many calls (default 20).
open_worldNoAlso call read-only tools marked openWorldHint (web search, fetch): they may cost API credits.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already flag this as destructive and open-world, and the description adds real context beyond them: it clarifies that the tool itself only invokes the target's read-only tools, that a command server is launched by executing the given command verbatim, and that open-world tools may cost API credits. The credential/header and environment implications are left to the schema, but the risky behaviors are disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

All content is substantive and the safety warning is placed at the end where it stands out, but the opening sentence is an overlong chain of clauses that packs the read-only selection rule, schema validation and menu diffing into one breath. It is front-loaded but harder to parse than it needs to be.

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 seven-parameter, no-output-schema tool that spawns servers, the definition covers what it does, what it refuses to call, and the command-execution hazard. Remaining details (environment handling, call limits, endpoint requirements) are fully covered by the 100%-described schema, so nothing an agent needs is missing.

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 description coverage is 100%, so all seven parameters are already documented, which sets the baseline at 3. The description only adds meaning for command ('started by running command as given') and open_world gating; cwd, env, headers, url and max_calls receive no additional framing in the description text.

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?

The description states a concrete action and object: it calls an MCP server's tools as an agent would and checks the results, validating against outputSchema and reporting menu changes per call. That is far more specific than the name 'check_session' alone and separates it from snapshot-style siblings. It stops short of naming a sibling it is not, so 5 is not warranted.

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?

It gives useful conditional guidance: openWorldHint tools are skipped unless open_world is set, and only pass a command you would run yourself. However, it never explicitly contrasts with siblings such as review_baseline, diff_menus or snapshot_menu, so the choice between a live session and a static snapshot is left to inference.

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