Skip to main content
Glama

session_get

Reads a character range from an archived session by its ID, enabling retrieval of specific conversation slices found via session search.

Instructions

Read a slice of one archived session by id (from session_search).

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": {
      "id": "<id>"
    },
    "name": "session_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesSession id from session_search.
limitNoSlice length, default 6000, max 20000.
offsetNoStart offset in characters, default 0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. 'Read' and 'archived' signal a non-mutating operation and 'slice' signals partial retrieval, but it says nothing about what happens with an invalid id, whether content is truncated silently, or how the slice is returned.

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?

One short sentence with zero filler; the operation, the resource, the keying parameter, and the source of that parameter are all front-loaded.

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?

For a three-parameter read tool this is close to sufficient, since the schema fully documents the parameters. However, with no output schema and no annotations, the description never indicates what a 'slice' contains (raw transcript text? messages?) or how truncation is signalled, leaving a real gap.

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% (id, limit, offset all documented with defaults and a max), so the schema already does the heavy lifting and baseline 3 applies. The description adds only the provenance of 'id', not extra meaning for limit/offset or slice units.

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?

States a specific verb and resource ('Read a slice of one archived session'), constrains it to a by-id lookup, and names the provenance of the id ('from session_search'), which separates it cleanly from the session_search sibling that produces those ids.

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?

The phrase 'from session_search' implicitly tells the agent this is the follow-up call after a search, and 'one ... session by id' rules out bulk retrieval. It does not explicitly say when not to use it or what to do if the id is stale, so it stops short of full routing guidance.

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