Skip to main content
Glama

Get a state entry

get_state
Read-onlyIdempotent

Read one entry of a state store: its value (any JSON), version (counts its writes; pass it as if_version to change it safely), size, created_at, updated_at and expires_at.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "store": "<store>",
      "key": "<key>"
    },
    "name": "get_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesThe entry's key.
storeYesThe store's name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive, closed-world behavior, so the description's job is narrower, and it delivers by disclosing the exact return shape (value, version, size, created_at, updated_at, expires_at) and the meaning of version as a write counter usable as if_version. It does not mention behavior when the key is absent or whether expires_at implies TTL-based eviction.

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 front-loaded sentence states the action, the scope, and the return surface with no filler. Since no output schema exists, enumerating the returned fields earns its place rather than being redundant.

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 two-parameter read with no output schema, the description covers the essential gaps by listing what comes back and explaining version semantics. Missing are error/miss behavior and any TTL nuance around expires_at, which an agent would want but can likely infer.

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 coverage is 100%, so both parameters are already documented as "the store's name" and "the entry's key"; the description adds no lookup semantics beyond confirming that the target is a single entry. The version/if_version explanation is about a return field, not an input, so the baseline 3 applies.

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?

"Read one entry of a state store" gives a specific verb (read) and resource (a single state-store entry), and the word "one" implicitly separates it from list_state and set_state. It stops short of naming any sibling explicitly, so the differentiation is inferred rather than stated.

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?

Usage is only implied by the singular "one entry" framing; there is no explicit when-to-use or when-to-prefer-list_state statement. The parenthetical about passing version as if_version hints at the write path, but it describes a downstream action rather than telling the agent when to call get_state versus an alternative.

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