Skip to main content
Glama

get_session_excerpt

Show the events around a chosen point in a captured session from search results, in chronological order, to inspect surrounding context.

Instructions

Show the events around one point of a captured session (from search_sessions), in order.

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

Input Schema

NameRequiredDescriptionDefault
aroundYesThe ordinal of the event to centre on.
radiusNoHow many events before and after to include (default 5, max 20).
session_idYessession_id from search_sessions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1-alpha.2

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose two real behaviors — windowing around a centre event and ordered output. It omits whether the call is read-only, what happens when 'around' is out of range, and how results are bounded or truncated, which matters for an unannotated tool.

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?

A single sentence with no filler, front-loading the action and resource and reserving the parenthetical for the one thing the agent must resolve: the source of session_id.

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?

For a three-parameter read tool with no output schema, the definition covers what the tool returns (ordered events in a window) and where the key input comes from. Missing are edge-case behavior for out-of-range ordinals and how many events come back when the window exceeds the session bounds.

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%, so 'around', 'radius' (default 5, max 20) and 'session_id' are all documented in the schema. The description adds only the conceptual framing of a centred window and asserts ordering, adding little beyond structured data. Baseline 3 applies.

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?

"Show the events around one point of a captured session" gives a concrete verb plus resource and scope, and it names the sibling that produces the session_id, so an agent can place it in the workflow. It stops short of distinguishing this from other session-reading siblings like get_messages, but the windowing concept is unambiguous.

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?

Usage is only implied: the parenthetical "(from search_sessions)" tells the agent where session_id comes from, which is a real prerequisite clue. There is no explicit statement of when to prefer this over get_messages or other session views, and no guidance on choosing a radius.

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