Skip to main content
Glama

session-get

Read-only

Retrieve a persisted consensus or ask-all session record by its ID. Returns the session details including opinions, verdict, and annotations, or an error if persistence is disabled or the ID is unknown.

Instructions

Fetch a persisted consensus/ask-all session record by id (opinions, verdict, arbiter, annotations). Requires sessions.persist; local and read-only (no provider calls). Returns a text-wrapped JSON envelope { session }, or { error } when persistence is off or the id is unknown.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNosession-revisit only: working directory for resolving the original file refs on the re-run; session-get ignores it.
sessionIdYesId of a persisted session record.
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false. The description adds details about being local, no provider calls, error cases, and that cwd is ignored, which goes beyond annotations without contradicting them.

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?

Two sentences, front-loaded with the core action, then return format and error handling. No wasted words, every sentence adds value.

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?

For a simple fetch tool, the description covers prerequisites, behavior, return format, and error scenarios. With good annotations and no output schema needed, it is fully informative.

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 baseline is 3. The description adds value by explaining that cwd is irrelevant for session-get and clarifying the role of sessionId, enhancing understanding beyond the schema text.

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 clearly specifies the action (Fetch), resource (persisted consensus/ask-all session record), and method (by id). It lists the contents (opinions, verdict, arbiter, annotations) and prerequisites, making the purpose unambiguous and differentiated from siblings.

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 description states it is read-only, local, and requires sessions.persist, giving context on appropriate usage. It lacks explicit comparison to siblings like session-annotate or session-revisit, but the read-only nature and mention of ignoring cwd provide implicit guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/antonbabenko/deliberation'

If you have feedback or need assistance with the MCP directory API, please join our Discord server