Skip to main content
Glama

Write app storage

app_state_set
DestructiveIdempotent

Writes to app storage from the widget. Widget only.

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": {
      "hub": "<hub>",
      "id": "<id>",
      "key": "<key>",
      "value": "<value>"
    },
    "name": "app_state_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesapp id
hubYeshub key
keyYesstorage key, 1 to 100 characters
valueYesany JSON value; null deletes the key

Output Schema

NameRequiredDescriptionDefault
keyYes
seqYes
valueYesthe stored JSON value
updated_byYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, idempotentHint=true, and openWorldHint=false, so the safety profile is covered. The description contributes one piece of extra context — the widget-only caller restriction — but says nothing about side effects on existing values, failure modes, or what happens on overwrite.

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 short sentences with zero filler and the scope constraint front and center after the verb. It is efficient, though the terseness leaves 'widget' undefined for a reader who lacks that context.

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

Completeness3/5

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

With an output schema, complete schema descriptions, and rich annotations, most structured information is already present, so the thin description is mostly sufficient. The remaining gap is that a destructive write tool never explains who may call it or what 'widget' context means concretely.

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?

All four parameters are fully documented in the schema (100% coverage), including the important 'null deletes the key' behavior, so the description does not need to compensate. It adds no parameter meaning of its own, which is acceptable given the schema already carries that burden.

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 and resource ('Writes to app storage'), and the tl;dr title confirms it is the write counterpart to a read tool. It stops short of naming the sibling read tool (app_state) explicitly, so the agent must infer the pairing from the name, but the operation itself is unambiguous.

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?

'Widget only' is a real usage constraint that tells the agent this cannot be called from arbitrary contexts, which is more than nothing. However, it gives no explicit when-to-use/when-not guidance and names no alternative for non-widget callers, leaving the selection logic implied rather than stated.

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