Skip to main content
Glama

session_bootstrap

Resume an active session for the current computer or create a new one seeded with recent memory context.

Instructions

Stage 1: Find or create a session for the current computer.

Checks for an active session (same computer, last active within 2 hours).
If found: resumes it and returns the last 5 events.
If not: creates a new session and seeds context from recent memory.

Args:
    client: Which Claude client is calling ('code'|'chat'|'cowork'|'dashboard').

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clientNocode

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

The description fully discloses the tool's behavior: it checks for an active session within a 2-hour window, resumes returning the last 5 events, or creates a new session with seeded context. No annotations are provided, so the description carries the full burden and meets it well.

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?

The description is concise, front-loaded with the key purpose, and then structured into logical sections (behavioral logic, arguments). Every sentence adds value, and the Args section is clear and efficient.

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?

While the description covers the tool's behavior well, it lacks detail about the return value structure despite an output schema being present. It mentions returning 'the last 5 events' and 'seeded context', but does not specify the full response format, which could be needed for downstream use.

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

Parameters5/5

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

The input schema only defines the 'client' parameter with a default and type. The description adds essential meaning: 'Which Claude client is calling ('code'|'chat'|'cowork'|'dashboard')', listing all valid values. Since schema coverage is 0%, this enrichment is critical.

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?

The description clearly states the tool's purpose: 'Stage 1: Find or create a session for the current computer.' It specifies the action (find or create), the resource (session), and the scope (current computer), setting it apart from sibling tools like list_recent_sessions or get_working_memory.

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?

The description implies this is the first step ('Stage 1') and explains the conditional logic (resume vs. create), but it does not explicitly state when to avoid this tool or mention alternatives among the many session-related siblings, such as consolidate_session_memory or get_working_memory.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SVerITG/Metis'

If you have feedback or need assistance with the MCP directory API, please join our Discord server