Skip to main content
Glama
dofunc
by dofunc

snapshot

Retrieve complete conversation state from open sessions, including prompts, replies, tool calls, plans, approvals and notifications, with filters to limit results and incremental updates by sequence.

Instructions

Full conversation of open sessions, the same as the webui shows: prompts, replies, thinking, tool calls with their input, output and diffs, plans, approvals, questions and agent-specific messages, plus each session's state and pending notifications. It can be large: pass session, and use last, types or exclude_types to keep it small. Pass back server_id and seq as since to get only what changed. ack is for UI clients that relay notifications. UI clients that poll: pass simplify to leave out tool call details (input, output, content) and session commands, and get one item in full with item.

Input Schema

NameRequiredDescriptionDefault
ackNoNotification keys already relayed
lastNoOnly the last n items, after the kind filters
sinceNoseq from the previous call: only items changed after it
typesNoOnly these item kinds
sessionNoOnly this session
simplifyNoTool items keep only their title, status and other header fields; commands are left out
server_idNoserver_id from the previous call; a different one resets
exclude_typesNoLeave these item kinds out

Output Schema

NameRequiredDescriptionDefault
seqYes
resetYes
sessionsYes
server_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden well: it discloses that output can be large, supports incremental retrieval via seq, has special behavior for ack and simplify, and can be reduced to header fields for polling clients. It does not discuss permissions or sensitivity, but the core behavioral traits are covered.

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?

The description is dense but front-loaded with what the tool returns, then immediately covers size, filtering, incremental retrieval, and UI-client patterns. Every sentence is relevant, though the paragraph is long and somewhat run-on.

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?

Given eight optional parameters, an output schema, and no annotations, the description provides enough context to call the tool correctly: it explains content scope, output size risk, filtering strategies, incremental updates, and polling-client behavior. No critical agent-facing information appears missing.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds meaningful usage semantics beyond the schema: how to keep results small, how server_id and seq feed into since, and how ack/simplify are intended for UI polling clients. It does not explain every parameter individually, but it adds practical interpretation.

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 clearly states that this returns a full conversation snapshot for open sessions, including prompts, replies, thinking, tool calls, plans, approvals, and related state. It is specific about the resource and contents, but does not explicitly differentiate itself from most sibling tools; the reference to 'item' is the only routing signal.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives explicit usage guidance: pass session to narrow scope, use last/types/exclude_types to keep results small, use since with server_id and seq for incremental changes, ack for notification-relaying UI clients, and simplify plus item for polling UI clients. It names the alternative, item, for retrieving one full item.

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