Skip to main content
Glama

set_memory_block_value

Destructive

Rewrite a labeled memory block's value at the revision you read, using expected_revision to prevent overwriting newer writes. Publish results for other threads to observe.

Instructions

Full-rewrite a memory block's value by label, at the revision you read. Read the block with get_memory_block, change its value, and pass its revision as expected_revision. If another write landed since, the call is refused: read it again, redo the change and retry. A read-only block or a value over the block's char limit is rejected. Use this to publish a result other threads watch.

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": {
      "label": "<label>",
      "value": "<value>",
      "expected_revision": "<expected_revision>"
    },
    "name": "set_memory_block_value"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelYes
valueYes
expected_revisionYesthe block's revision when you read it

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the annotations: full-rewrite semantics (the whole value is replaced, not merged), optimistic-concurrency behavior with a refused call and a read-modify-retry loop, and rejection of read-only blocks or values over the char limit. These are exactly the failure modes an agent must plan for and are not derivable from destructiveHint/idempotentHint.

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?

Four short sentences, front-loaded with the operation, then the procedure, then the failure path, then the use case. No filler and no repetition of schema or annotation content.

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 three-parameter mutation with no output schema, it covers procedure, concurrency failure, and rejection conditions. The only omission is what the call returns on success (e.g., the new revision), which matters for chaining another write but is not stated.

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

Parameters4/5

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

Schema coverage is only 33%, but the description compensates by tying expected_revision to the revision obtained from get_memory_block, clarifying that label identifies the block to overwrite, and noting the char limit that constrains value. It does not specify label formatting or what the rewritten value's new revision is, leaving a small gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Full-rewrite a memory block's value by label') plus the concurrency scope ('at the revision you read'), which separates it cleanly from get_memory_block and create_memory_block. An agent knows exactly what operation this performs without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit workflow: read with get_memory_block, change the value, pass that revision. It also names the intended use case ('publish a result other threads watch'). It stops short of stating when not to use it (e.g., creating a new block versus updating an existing one), so it is clear but not fully exclusive.

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

Deploy Server

Other Tools