Skip to main content
Glama

recover_session

Inspect persisted session metadata, clean up stale process IDs, and report live session state.

Instructions

Inspect persisted session metadata, clean up stale PIDs, and report live state.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description bears the full burden. It does at least signal a mutation ('clean up stale PIDs'), but it never says whether that cleanup kills processes, whether it is reversible, what 'live state' contains, or what happens if recovery fails — critical omissions for a zero-parameter operation that alters state.

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 no filler, though the three-part action list would read better ordered by importance (state the mutation first, since that is the risk-bearing part).

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

Completeness2/5

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

For a mutating, no-annotation, no-output-schema tool, one sentence is insufficient. The description should clarify the side effects of PID cleanup, what 'live state' is reported back, and how the result differs from get_session_state.

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?

The tool takes no parameters, so the schema imposes nothing on the description. Baseline 4 applies; no parameter meaning needs to be conveyed.

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

Purpose3/5

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

The description names a resource (persisted session metadata, PIDs) but bundles three different actions — inspect, clean up, report — into one sentence, leaving the primary purpose ambiguous. A sibling named get_session_state suggests a read-only inspection alternative, yet the description never distinguishes recover_session from it, so an agent cannot tell which to pick.

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?

There is no statement of when to use this tool, when not to, or what to use instead. The existence of get_session_state as a sibling makes the missing routing guidance more costly, since both plausibly read session information.

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