Skip to main content
Glama

Get Session Excerpt

get_session_excerpt
Read-only

Read more turns from an accessible private work session. Use session_id returned by get_task_context and cursor to page through the source, or a matched session's excerpt from search_my_work: its cursor, limit 1 and its text_offset read the passage found and on from it.

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": {
      "session_id": "<session_id>"
    },
    "name": "get_session_excerpt"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
cursorNo
session_idYes
text_offsetNoFor a long message, repeat its cursor with limit 1 and the returned next_text_offset.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds useful behavior beyond that: only sessions the caller can access are readable, and paging is done by repeated cursor calls. It stops short of describing what a "turn" looks like or how pagination terminates (beyond next_text_offset appearing in the schema).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Only two sentences and the purpose comes first, so nothing is buried. However, the second sentence is a run-on ("its cursor, limit 1 and its text_offset read the passage found and on from it") that an agent must re-parse to extract the instruction, which is avoidable verbosity of syntax rather than of content.

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 4-parameter read tool with no output schema, the definition covers inputs, provenance, and paging well. What remains thin is return-shape expectation — how many turns per page, what fields come back, and whether the cursor is session-global or per-message — which matters given there is no output schema to fall back on.

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?

With only 25% schema description coverage, the description carries most of the parameter burden and does it well: it explains what cursor advances, that limit interacts with text_offset, and that text_offset reads a passage and continues onward. session_id's provenance is also stated. The prose is dense, but the semantics are genuinely added beyond the schema.

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?

"Read more turns from an accessible private work session" gives a specific verb (read), resource (session), and scope (pagination beyond an initial excerpt). It distinguishes itself from siblings by naming get_task_context and search_my_work as the producers of its inputs, though it never explicitly states what it is *not* for.

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?

Strong routing guidance: session_id comes from get_task_context, cursor from either that call or a matched excerpt in search_my_work, and the limit-1-plus-text_offset pattern is prescribed for long messages. No explicit when-not-to-use case, which keeps it below a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.