Skip to main content
Glama

detach_memory_block

DestructiveIdempotent

Remove a memory block from a single thread without deleting the block or its value from the workspace; repeat calls are safe when the block is not attached.

Instructions

Remove a memory block's attachment from one thread, identified by block id. The block and its value stay in the workspace and other threads keep it; delete_memory_block deletes the block itself and attach_memory_block is the opposite call. Returns {detached: true}, or {detached: false} when the block was not attached, so repeating the call is safe. Get block ids from list_thread_memory_blocks. Requires workspace:write.

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": {
      "thread_id": "<thread_id>",
      "block_id": "<block_id>"
    },
    "name": "detach_memory_block"
  }
}

Input Schema

NameRequiredDescriptionDefault
block_idYesUUID of the memory block (its id field, as list_thread_memory_blocks returns it), not its label.
thread_idYesUUID of the thread to detach the block from. You must be able to read it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv479.0.2
    • addedInput schema / properties / block_id / description
      Added value: +"UUID of the memory block (its id field, as list_thread_memory_blocks returns it), not its label."
    • addedInput schema / properties / thread_id / description
      Added value: +"UUID of the thread to detach the block from. You must be able to read it."
  2. First observedv479.0.0

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations it discloses what survives the call (the block and its value remain in the workspace, other threads retain it), the exact return contract ({detached: true} / {detached: false}), the idempotency implication of repeat calls, and the required 'workspace:write' permission. This adds real context on top of destructiveHint/idempotentHint rather than restating them.

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 and scope, then alternatives, then return contract, then prerequisite. Every sentence carries distinct information with no filler or repetition.

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

Completeness5/5

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

Although there is no output schema, the description states the exact return shape, and for a two-parameter mutation with a 100%-covered schema it covers permissions, idempotency, data-survival semantics, and id sourcing. Nothing an agent needs to call it correctly is missing.

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 100%, so the baseline is 3; the description earns an extra point by naming block_id as the identifying input and pointing to list_thread_memory_blocks as its source, which is meaning the schema itself does not supply. It does not, however, elaborate on the thread_id precondition beyond what the schema already says.

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?

The description opens with a specific verb and resource ('Remove a memory block's attachment from one thread') and immediately bounds the scope to a single thread while naming the sibling calls it is not (delete_memory_block, attach_memory_block). An agent can distinguish this from the delete and attach variants without inspecting any schema.

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

Usage Guidelines5/5

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

It explicitly names the two nearest alternatives and states how each differs: delete_memory_block destroys the block itself, attach_memory_block is the inverse operation. It also tells the agent where to obtain the required ids ('Get block ids from list_thread_memory_blocks'), closing the most likely precondition gap.

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