Skip to main content
Glama

List state

list_state
Read-onlyIdempotent

Without store: list the organization's state stores (store, entries, bytes, updated_at). With store: list its entries in key order (key, version, size, updated_at, expires_at; no values), optionally those whose key starts with prefix, paged with cursor (next_cursor). State is a durable key-value store that runs share: a run whose definition names a store (state) reads and writes it with its state tools, for example to remember what a scheduled run saw last time.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoPage size (default 100).
storeNoA store's name.
cursorNonext_cursor from the previous page.
prefixNoOnly keys that start with this.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds real value beyond that: keys are returned in order, values are excluded, results are paged via next_cursor, and expiry is exposed — but it doesn't say what next_cursor looks like when exhausted or whether listing is rate-limited.

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 two operating modes are front-loaded in a clear parallel structure, and every clause carries information about inputs or returned fields. The final sentence on what state is runs slightly long, but it earns its place by explaining durable key-value semantics for an unfamiliar agent.

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?

There is no output schema, and the description compensates fully by enumerating the returned fields for both modes (store, entries, bytes, updated_at; key, version, size, updated_at, expires_at) plus the paging field. Combined with the annotations, nothing an agent needs to call this correctly is 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 would be 3, but the description adds genuine meaning: `store` is not just a name filter, it switches the tool between two entirely different result shapes. It also clarifies that `prefix` filters keys and `cursor` comes from a prior page's next_cursor.

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 gives a specific verb and resource and explicitly splits it into two modes: without `store` it lists the organization's state stores with their fields, and with `store` it lists that store's entries. It also signals the boundary with the get/set/delete siblings by noting entries come back with 'no values', so an agent can tell listing metadata from reading a value.

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 'Without store / With store' construction tells the agent exactly which parameter selects which behavior, and the closing sentence explains when the feature matters (a run remembering what a prior scheduled run saw). It stops short of naming explicit alternatives such as get_state for retrieving values, leaving that inference to the reader.

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