Skip to main content
Glama

plugin_state

Read one keyed value and its revision from a plugin's shared state, respecting page Deny and access checks; state is written only through plugin methods.

Instructions

Read one keyed value and its revision from a plugin's shared state. Respects the page's Deny; otherwise asks unless Full or already allowed. State is written only through plugin methods.

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

Input Schema

NameRequiredDescriptionDefault
idYesPlugin id from plugin_list, or the id being authored.
keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose meaningful behavior: an interactive permission prompt may be triggered, a page-level Deny short-circuits the call, and this tool cannot mutate state. Undisclosed: what happens when the key is absent, whether the prompt can be suppressed, and error behavior.

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?

Three short sentences, front-loaded with the action and resource, no redundant restatement of the tool name. The permission sentence is dense with unexplained vocabulary, which slightly undercuts readability.

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?

For a simple two-parameter read tool with no output schema, the description covers purpose, permission gating, and the absence of writes, and even names the returned revision. It still leaves undefined terms (Deny, Full) and says nothing about missing-key behavior, which an agent needs to interpret the result.

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 50% — id is documented in the schema with a pattern, key has no description at all. 'One keyed value' hints that key names a state entry, but no key format, namespacing, or scoping (per-plugin vs per-page) is added, so the description only marginally compensates for the undocumented key parameter.

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: 'Read one keyed value and its revision from a plugin's shared state.' The phrase 'plugin's shared state' implicitly separates it from the sibling page_state, though the contrast is never made explicit.

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?

Tells the agent when the call will be gated ('Respects the page's Deny; otherwise asks unless Full or already allowed') and clarifies writes go through plugin methods, which implies this is the read path. However, it never says when to prefer this over page_state or plugin_read, and terms like 'Deny' and 'Full' are used without definition.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.