Skip to main content
Glama

Dayze — Life Context

Merge Exact Memories

merge_memory
Destructive

Preview first, 30-day undo. Retire exact duplicates while keeping the named canonical memory. Preview shows every retired id and distinct provenance; the receipt restores all rows for 30 days. Similar wording is refused. Reviewed and reversible: first call preview_destructive_change({ tool: "merge_memory", arguments: { canonical_memory_id, duplicate_memory_ids } }), which stores the exact change without applying it. After the user confirms, call merge_memory with preview_id, restore_window_acknowledged: true and request_id; the reviewed preview is applied exactly and a changed record is refused. Returns restore_id; restore_change({ restore_id }) undoes it for 30 days unless the record was edited since. ($0.10; API key required)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
preview_idYespreview_id returned by preview_destructive_change for this tool.
request_idYesRequired idempotency key; retries return the original receipt.
idempotency_keyNoAlias for request_id.
canonical_memory_idNoSurviving memory id, checked against the preview.
restore_window_acknowledgedYesMust be true after reviewing the preview and its 30-day restore window.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountNoThe Dayze account this data belongs to. With more than one Dayze connection, name it in the answer.
preview_idNo
provenanceNo
restore_idNoPass to restore_change to undo within restore_window_days.
reversibleNo
idempotent_replayNo
life_state_rebuiltYes
restore_expires_atNo
retired_memory_idsYes
canonical_memory_idYes
restore_window_daysNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: the 30-day undo window, that preview stores the exact change without applying it, that the applied preview is refused if the record changed, the $0.10 cost and API-key requirement, and the idempotency behavior via request_id. This is exactly the behavioral disclosure a destructive tool needs.

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?

Front-loads the key traits ('Preview first, 30-day undo') and every clause carries information about the workflow, refusals, undo, and cost. It is dense and slightly telegraphic, but nothing is wasted.

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?

An output schema exists, so return values need not be explained, yet the description still notes it returns restore_id. Combined with the preview/confirm/undo workflow and refusal conditions, it is complete for a destructive, cost-bearing tool.

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 100%, so the schema already documents all five parameters. The description weaves preview_id, restore_window_acknowledged, and request_id into the workflow but adds no syntax or format detail the schema lacks; 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 (merge/retire) and resource (exact duplicate memories) with clear scope: 'Retire exact duplicates while keeping the named canonical memory.' An agent can distinguish this from siblings like merge_people or delete_memory from the description alone.

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 explicit workflow guidance: call preview_destructive_change first, then after user confirmation call merge_memory, and notes that similar (non-exact) wording is refused. It does not compare against alternatives like correct_memory_atom or delete_memory, so it stops short of full when/when-not routing.

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.