Skip to main content
Glama

session.resume

Idempotent

Reopen the project's most recent session to mark it active, attach the calling agent, and return summary-depth context for agent handoffs or completed-session reopenings.

Instructions

Reopen the project's most recent session: mark it active, attach the calling agent and log a session.resumed event. Returns {session, context} with the summary-depth context. Use it when taking over from another agent or reopening a completed session; an already active session only needs context.get. Each call logs another session.resumed event.

Input Schema

NameRequiredDescriptionDefault
agentNoName of the agent taking over, e.g. claude or codex; defaults to AGENT_SESSION_AGENT, else "mcp"

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.9
    • changedInput schema / properties / agent / description
      Previous value: -"Agent name attaching to the session"New value: +"Name of the agent taking over, e.g. claude or codex; defaults to AGENT_SESSION_AGENT, else \"mcp\""
  2. First observedv0.1.8

TDQS

A3.9/5.0
Behavior1/5

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

The description says each call logs another session.resumed event, which contradicts the idempotentHint=true annotation. Although it otherwise discloses useful side effects and return shape, the annotation contradiction is a serious inconsistency.

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 front-loaded, with the core action first and usage guidance and return shape afterward. All three sentences carry relevant information without waste.

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

Completeness5/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 no output schema, the description supplies enough context: side effects, return shape, and when to use it versus context.get. The remaining issue is the idempotency contradiction, not missing context.

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%, and the schema already documents the agent parameter, including its default. The description adds little beyond saying the calling agent is attached, so baseline 3 is appropriate.

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 states a specific verb and resource: reopening the most recent session, marking it active, attaching the agent, and logging an event. It also names the return shape and distinguishes the action from context.get for an already active session.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly says when to use it: taking over from another agent or reopening a completed session. It also gives the alternative for an already active session, context.get, so the routing decision is clear.

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