Skip to main content
Glama

Update capsule state item

update_state_item

Patch one state item in a capsule (text, type, status, confidence, source, refs). Requires base_revision to match the current revision.

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": {
      "capsule_id": "<capsule_id>",
      "base_revision": "<base_revision>",
      "item_id": "<item_id>",
      "patch": "<patch>"
    },
    "name": "update_state_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
patchYes
item_idYes
capsule_idYes
base_revisionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnly=false, destructive=false, idempotent=false), and the description adds a genuinely new behavioral constraint not present in structured data: optimistic concurrency via a matching base_revision. Gaps remain—whether the patch merges or replaces fields, and what the caller sees on a revision mismatch, are unstated.

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?

Two tight sentences with the action first and the precondition second; the parenthetical field enumeration earns its space by compensating for the opaque patch object. Nothing is redundant with the title.

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 mutation tool with zero schema coverage, a nested patch object, and no output schema, the definition covers the core intent and one key constraint but omits merge semantics, failure behavior, and any indication of the response. Adequate, not complete.

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 description coverage is 0% and the patch parameter is an untyped nested object, so the parenthetical field list is the only source of meaning for it—valuable but incomplete (optionality, types, and merge semantics are unspecified). base_revision is explained as a revision-match precondition; capsule_id and item_id are left implicit.

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 (patch) and resource (one state item in a capsule) and enumerates the patchable fields (text, type, status, confidence, source, refs), which separates it from siblings like update_block or save_state by scope. It stops short of explicitly naming when to prefer this over save_state, so it is clear but not fully differentiated.

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?

The only guidance is a precondition: 'Requires base_revision to match the current revision.' There is no statement of when to use this versus save_state or update_block, nor what to do when the revision check fails, so usage is implied rather than prescribed.

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