Skip to main content
Glama

Get a session story

get_session_story
Read-only

Read one session as a text replay: a short narrative of what the user was trying to do, plus the moments it was built from (intent, outcome, retry count, error line, and the raw event range each covers). Start here rather than with raw events. When storyState is unavailable the narrative could not be generated and the moments are the whole answer. Session content is captured browser data.

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": "get_session_story"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionIdYesThe session uuid, from get_ticket's matchedSession, find_sessions, or get_session_timeline

Output Schema

NameRequiredDescriptionDefault
storyYes
noticeYes
momentsYes
sessionIdYes
truncatedYes
storyStateYes
generatedAtYes
throughSequenceYes
storyUnavailableReasonYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered; the description adds real value beyond that by explaining the degraded mode when storyState is unavailable and by flagging that session content is captured browser data, which matters for how an agent presents it. It does not discuss size limits or truncation of long sessions.

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?

Three sentences, front-loaded with what the tool returns before any caveats. The parenthetical field list is compact, and the degraded-mode and data-provenance notes each add distinct information with no filler.

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?

An output schema exists, so the description needn't enumerate return fields, yet it usefully characterizes the narrative-plus-moments shape and the missing-storyState case an agent will actually encounter. Nothing needed to call it correctly is absent.

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 coverage is 100% on a single required sessionId, and the schema description already names three sources for it (get_ticket's matchedSession, find_sessions, get_session_timeline). The prose adds no format or provenance detail beyond that, so the baseline 3 applies.

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 concrete verb and resource ('Read one session as a text replay') and then specifies the two things returned: a narrative and the moments it was built from, including their fields. It also distinguishes this from the raw-event alternative, so an agent can tell what it gets without opening the schema.

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 explicit routing advice — 'Start here rather than with raw events' — which establishes a preferred order against the timeline-style sibling. It does not name an exclusion case explicitly (e.g., when to prefer the raw timeline), but the fallback note for storyState covers the main edge condition.

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.

Resources