Skip to main content
Glama

set_state

Save bounded JSON context and append state.updated to the ordered feed. Use if_revision for compare-and-set; 0 creates only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYes
valueYes
address_idYes
read_tokenYes
if_revisionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations the description carries the full burden, and it does disclose meaningful traits: a feed-append side effect, compare-and-set concurrency semantics, and create-only-when-revision-is-0. It omits failure behavior on revision mismatch, whether existing values are overwritten, and why a read_token is required for a write, leaving notable gaps.

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?

Two tight sentences with the primary action front-loaded and the parameter guidance trailing. No filler, though the phrasing is dense enough to border on cryptic.

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 5-parameter mutation tool with no annotations, no output schema, and 0% schema coverage, the description is too thin. It never explains the required read_token or address_id, nor the response, so an agent lacks enough to call it confidently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, but it only clarifies if_revision. The required read_token (unusual on a write), address_id, key, and value are left unexplained; only 'bounded JSON' hints at value constraints.

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 states a concrete verb+resource ('Save bounded JSON context') plus the observable side effect ('append state.updated to the ordered feed'), so an agent knows this writes state rather than reading it. It does not explicitly name the siblings get_state/delete_state to sharpen the distinction, so it stops short of a 5.

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?

It gives real conditional guidance for one parameter ('Use if_revision for compare-and-set; 0 creates only'), which implies the update-vs-create decision. However it says nothing about when to choose set_state over get_state or delete_state, nor any preconditions for the required read_token.

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.