Skip to main content
Glama

Undo a dream pass

dream_undo
Destructive

Reverse a dream's own changes within 7 days. An entry another writer changed after the dream is left as it is and reported as a conflict. A removed entry comes back with its value, type, importance and source; other metadata such as a TTL is not restored.

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": {
      "dream_id": "<dream_id>"
    },
    "name": "dream_undo"
  }
}

Input Schema

NameRequiredDescriptionDefault
dream_idYesDream id returned by dream_start.

Output Schema

NameRequiredDescriptionDefault
keptYes
statusYes
dream_idYes
restoredYes
conflictsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the supplied destructiveHint/idempotentHint annotations: it discloses the 7-day window, the partial-failure model (conflicting entries left untouched and reported), and precisely which fields are restored versus lost (value, type, importance, source restored; TTL and other metadata not). That is exactly the non-obvious behavior an agent needs before invoking a destructive operation.

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 short sentences, front-loaded with the action and the time limit, then the conflict rule, then the restoration caveat. No padding or repetition of the title.

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 destructive, non-idempotent mutation with an output schema (which covers return values), the description covers timing, conflict handling, and restoration gaps adequately. Only marginal items like permission requirements or how the conflict report is surfaced are left implicit.

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 the single dream_id parameter is already documented in the schema as coming from dream_start with a pattern constraint. The description adds no further parameter-level detail, so the schema does the work; 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 ('Reverse') against a specific resource ('a dream's own changes') with an explicit 7-day scope. The 'dream's own changes' framing separates it from the generic rollback/preview_rollback siblings without needing to name them.

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 a clear precondition (within 7 days) and a clear boundary condition (entries changed afterward by another writer are skipped and reported as conflicts), which effectively tells the agent when this will and will not do what it wants. It stops short of naming a sibling alternative for out-of-window or non-dream undo cases.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.