Skip to main content
Glama

memory_batch

Preview bulk memory remediation with dry-run, then execute via confirm token; list batches or roll back a batch ID. Supports move, reclassify, replace, supersede, suppress, restore, and forget.

Instructions

Two-phase bulk remediation (dry_run preview -> confirm_token execute), list batches, or rollback a batch_id (admin role).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "memory_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionNolist
filterNo
paramsNo
dry_runNo
batch_idNo
confirm_tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.1.0

TDQS

B3.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so safety framing is partly covered. The description adds genuinely new behavioral facts beyond them: an explicit two-phase confirmation protocol with the confirm_token gate and an admin-role prerequisite for rollback. It does not explain side effects of the individual actions or whether a batch is reversible except via rollback.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense sentence with the primary use case front-loaded and no filler. The parenthetical arrows and backticked parameter names pack a lot into little space, though cramming three distinct modes into one clause makes it read more like a summary than a reference.

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?

This is a six-parameter tool with nested objects, no output schema, and zero schema coverage, which demands a fuller description. The critical `action` enum and the nested `params`/`filter` payloads are undocumented in both the schema and the description, leaving an agent unable to construct a valid remediation call from this text alone.

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 six parameters, so the description must carry the burden and it does not. It explains dry_run and confirm_token in passing and mentions batch_id, but leaves the central `action` dispatcher (nine enum values, defaulting to list) and both nested objects `filter` and `params` completely undefined.

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 names three concrete capabilities: two-phase bulk remediation, listing batches, and rolling back a batch_id. That distinguishes it from single-item siblings like memory_forget or memory_reclassify by scope. However, "remediation" is never grounded in the actual operations (move_scope, reclassify, replace, supersede, suppress, restore, forget), so an agent must still open the schema to learn what a batch actually does.

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?

It gives one real usage rule: preview with `dry_run`, then execute with `confirm_token`, and notes that rollback requires admin role. It does not say when to choose a bulk batch over the corresponding single-record sibling tools, nor when to use list versus rollback versus a remediation action.

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