Skip to main content
Glama

retag

Update, add, or remove tags on a stored memory without re-embedding it, enabling metadata cleanup while preserving existing embeddings.

Instructions

Replace or adjust the tags on a memory without re-embedding it.

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

Input Schema

NameRequiredDescriptionDefault
addNo
keyYes
tagsNo
removeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv7.1.7

TDQS

B3/5.0
Behavior2/5

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

With no annotations, the description carries the entire behavioral burden. It does disclose one genuinely useful trait — the operation does not trigger re-embedding, so the memory's vector is untouched — but it says nothing about permissions, idempotency, behavior for a nonexistent key, or what happens when both tags and add/remove are supplied.

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?

A single front-loaded sentence with no filler; the non-obvious detail (no re-embedding) is placed where it will be read first. Nothing could be removed without losing information.

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

Completeness2/5

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

For a four-parameter mutation tool with no annotations, no output schema, and zero schema description coverage, the one-line description is far too thin. An agent cannot confidently determine how to address the target memory or how replacement versus incremental adjustment is resolved.

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

Parameters2/5

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

Schema description coverage is 0% across four parameters, so the description must compensate and largely does not. "Replace" hints that tags overwrites the full set and "adjust" hints at add/remove, but the required key parameter is never mentioned and the interaction/precedence between tags and add/remove is left entirely unspecified.

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?

The description gives a specific verb and resource ("Replace or adjust the tags on a memory") and adds a distinguishing property, that no re-embedding occurs. It does not name any sibling tool, so differentiation relies on the reader inferring that other siblings handle recall, deletion, or promotion rather than tag mutation.

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?

"Replace or adjust" implicitly signals two modes of use, which loosely maps to the tags-vs-add/remove parameter split. However, there is no explicit when-to-use statement, no when-not-to-use condition, and no named alternative for related operations like full memory rewrites.

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