Skip to main content
Glama

get_state

Inspect session state stored in Redis under stateful simulation for a project.

Input Schema

NameRequiredDescriptionDefault
sessionKeyYesThe exact session key resolved via stateLookupExpr/stateCaptureExpr
projectSlugYesProject slug to inspect state for

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full burden, yet it only discloses the storage backend (Redis) and scenario (stateful simulation). It says nothing about behavior when the session key is missing, whether calls are side-effect free, permission requirements, or the shape of the returned state.

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?

A single front-loaded sentence with no filler. It is arguably too sparse rather than padded, but every word earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with no annotations and no output schema, the description leaves important gaps: what the returned state contains, what happens for an unknown sessionKey, and how it relates to set_state/delete_state. Only the storage location and scenario context are supplied.

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% - sessionKey is documented as resolved via stateLookupExpr/stateCaptureExpr and projectSlug as the project scope - so the schema already does the heavy lifting. The description adds no parameter context beyond that, which is the baseline 3 case.

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?

States a specific verb ('inspect') and resource ('session state stored in Redis under stateful simulation for a project'), so an agent can tell this is a read of simulated state. It doesn't explicitly name the set_state/delete_state siblings, but 'inspect' versus their mutation verbs makes the distinction inferable.

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?

The phrase 'stateful simulation' implies this is used to check state after a simulation runs, but there is no explicit when-to-use, no prerequisites, and no reference to set_state or delete_state as the alternatives for changing or clearing state.

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