Skip to main content
Glama

code_session_resume

Read-only

Load saved session metadata and recent transcript job IDs to resume work and continue execution with the same session ID.

Instructions

Open saved session metadata and recent transcript job IDs. Continue with code_execute and the same sessionId.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sessionId": "<sessionId>"
    },
    "name": "code_session_resume"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true and openWorldHint=false, and the description is consistent with that ("Open"/"saved" implies a non-mutating restore). It adds the useful detail that the result carries job IDs for follow-on execution, but says nothing about failure behavior for missing, deleted, or expired session IDs, which is the main behavioral risk for a resume tool.

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?

Two short sentences, front-loaded with what is returned and then the continuation step; every sentence earns its place. The terse phrasing leaves "Open" slightly ambiguous, but there is no filler.

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

Completeness3/5

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

With no output schema, one parameter, and read-only annotations, the definition is nearly adequate, and it does sketch the return payload plus the follow-up call. It is missing the invalid/expired-session behavior and any hint that the returned metadata should be inspected before continuing, which are the remaining gaps for this complexity level.

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?

There is one required parameter with 0% schema description coverage, so the description must carry the meaning. It partly does: "the same sessionId" implies an identifier for a previously saved session that is reusable across code_execute, but it never states whether the ID must come from a prior code_start/execute call or what format it takes.

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 uses a specific verb ("Open") and names the concrete resources returned (saved session metadata and recent transcript job IDs), which tells an agent what it gets back rather than just restating the name. It stops short of explicitly saying "resume a previously saved session" in resume-specific language, and it does not contrast itself with siblings such as code_start or code_status.

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?

It gives an explicit next step: continue with code_execute using the same sessionId, which is the key usage chain an agent needs. It lacks any when-not guidance (e.g., what to do if the session has expired, or when code_start would be preferred), so it is clear but not fully routable.

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