Skip to main content
Glama

sessions_get_session_json

Fetch and parse a session's JSON from strands-hub to inspect its configuration and state. Provide a session ID to retrieve the parsed session.json content.

Instructions

Fetch and parse sessions/<session_id>/session.json.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral disclosure burden. 'Fetch and parse' reveals it is a read operation that returns parsed JSON content, but it doesn't mention failure behavior or edge cases. For a simple read-only fetch tool this is adequate but not rich.

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 that fully states the operation and resource in compact form. Every word earns its place, with the core action front-loaded.

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 simple one-parameter fetch-and-parse tool, the description covers the essential behavior and parameter usage. It lacks sibling differentiation, but nothing critical is missing for successful invocation.

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 0%, but the description shows how `session_id` is used by embedding it in the resource path. This adds meaning beyond the schema's bare 'Session Id' label, effectively documenting the parameter's role.

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 uses specific verbs ('Fetch and parse') and a precise resource path (`sessions/<session_id>/session.json`), making the tool's purpose clear. It doesn't explicitly differentiate from the sibling `sessions_get_agent_json`, but the resource path leaves little ambiguity.

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

Usage Guidelines2/5

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

No guidance is given on when to use this tool versus alternatives such as `sessions_get_agent_json`. The agent must infer usage from the name and path alone, which is minimal support for tool selection.

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