Skip to main content
Glama

palace_update_drawer

Overwrite a memory drawer's content in place to correct an existing memory while keeping its id, wing, room, and source; related search data is recomputed.

Instructions

Replace a drawer's content in place, keeping its id, wing, room and source. The old text is overwritten (no history kept), and the embedding, hall, detected entities and preference data are recomputed so search reflects the new text. Returns success=false if the id does not exist. Use it to correct a memory without changing its id; to add a new memory use palace_add_drawer, and to remove one use palace_forget.

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": {
      "drawer_id": "<drawer_id>",
      "content": "<content>"
    },
    "name": "palace_update_drawer"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYesNew full content; replaces the existing text entirely
drawer_idYesId of the drawer to overwrite

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.20.7
    • addedInput schema / properties / content / description
      Added value: +"New full content; replaces the existing text entirely"
    • addedInput schema / properties / drawer_id / description
      Added value: +"Id of the drawer to overwrite"
  2. First observedv0.20.5

TDQS

A4.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does well: it discloses that old text is overwritten with no history, that embeddings, hall, entities and preference data are recomputed, and that success=false is returned for a missing id. It does not cover permissions/authorization requirements or any concurrency or rate-limit behavior on the recompute step, which is the remaining gap for a destructive mutation.

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?

Three sentences, front-loaded with the operation and its preservation semantics, then effects, then failure mode and routing. Every sentence earns its place with no filler.

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?

For a two-parameter mutation with no output schema, the description covers what changes, what is preserved, what is destroyed, the recompute side effects, and the failure signal. An agent has enough to call it correctly.

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 100% and both fields already document themselves, including 'New full content; replaces the existing text entirely'. The description's emphasis on replacement rather than patching reinforces that but adds no syntax or format detail beyond the schema, so the baseline 3 applies.

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 ('Replace a drawer's content in place') and immediately scopes what is preserved (id, wing, room, source). It also names the sibling tools it is not (palace_add_drawer, palace_forget), so an agent can distinguish it without opening another 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?

Explicitly states the when-to-use case ('correct a memory without changing its id') and routes to alternatives for the add and remove cases by name. Nothing about selection is left to inference.

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