Skip to main content
Glama

Apply dream pass changes

dream_apply
Destructive

Apply up to 25 actions (revise, forget, confirm, flag) to a started dream. Each action is checked against its expected version; one that changed since dream_start is reported as a conflict and not applied. Prior states are recorded first, so dream_undo can reverse the dream.

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>",
      "actions": "<actions>"
    },
    "name": "dream_apply"
  }
}

Input Schema

NameRequiredDescriptionDefault
finalNofalse keeps the dream open for another call.
reportNoContradictions left alone and notes, on the last call.
actionsYes
dream_idYesDream id returned by dream_start.

Output Schema

NameRequiredDescriptionDefault
statusYes
resultsYes
dream_idYes
forget_capYes
forgets_reservedYes
contradictions_leftYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already flag destructive=true, non-idempotent and closed-world, so the safety profile is covered. The description adds real behavioral detail beyond that: per-action optimistic concurrency against expected_version, conflict actions being reported and skipped rather than aborting the batch, and prior states being persisted before mutation so dream_undo can reverse. It stops short of saying whether the batch is atomic or how partial applications surface in the output.

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?

Two dense sentences, front-loaded with what the tool does, followed by the conflict and reversibility guarantees. No filler; each clause carries distinct operational information.

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?

With an output schema present, return values needn't be explained, and annotations plus the nested input schema cover most remaining detail. The description supplies the batch limit, conflict behavior and undo contract, which are the facts an agent needs before invoking it; only atomicity/failure semantics 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 description coverage is 75%, and the schema itself documents op, key, new_value, merged_from, evidence_keys, expected_version, final and report thoroughly. The description only echoes the 25-action cap and the op names, adding little beyond structured fields — baseline 3 is appropriate.

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 — apply a batch of up to 25 actions of enumerated kinds (revise, forget, confirm, flag) to a started dream. The 'started dream' scope and per-action semantics distinguish it from dream_start (which creates the dream) and dream_undo (which reverses it).

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?

Places the tool clearly in the lifecycle: it operates on a dream that has already been started, and its effects are reversible via dream_undo, which tells the agent when this is the right call versus the undo path. It doesn't state explicit when-not conditions (e.g., what to do if the dream is already final), but the context is unambiguous.

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.