Skip to main content
Glama

resolve_memory

Settle a memory conflict flagged by save_memory by comparing the pending fact with candidates and selecting new, duplicate, update, or contradiction; target ID is needed for update or contradiction.

Instructions

Settle a possible conflict after save_memory returned needs_resolution.

    Compare the new fact with the candidates it returned and pick a decision. For update
    or contradiction, the candidate is kept in history as superseded and the new fact
    becomes current.

    Do NOT use for any other purpose; to change a fact you already know the id of, use
    update_memory.
    

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": {
      "pending_id": "<pending_id>",
      "decision": "<decision>"
    },
    "name": "resolve_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
decisionYesnew: a different fact, keep both. duplicate: same as a candidate. update: replaces a candidate with a newer value. contradiction: a candidate is no longer true.
target_idNoThe candidate's id; required for update and contradiction.
pending_idYesmemory_id from a needs_resolution save.

Output Schema

NameRequiredDescriptionDefault
statusNoresolved
messageYes
decisionYes
active_idYesThe fact that is now current, if any.
superseded_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations declare readOnly=false and destructive=false, so safety is partly covered. The description adds important behavior beyond annotations: update and contradiction keep the candidate in history as superseded and make the new fact current. It does not explain duplicate/new handling in prose, but the enum schema covers those decisions and an output schema exists.

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?

The description is front-loaded with the trigger, then the decision behavior, then the exclusion. It is compact and every sentence serves a purpose, though the broad 'Do NOT use for any other purpose' guardrail could be slightly tighter.

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 conflict-resolution mutation with rich schema coverage and an output schema, the description supplies the trigger, key side effects, and the main alternative. It is complete enough for correct invocation, with only minor gaps around duplicate/new outcomes that the schema already clarifies.

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%, with all parameters documented, including decision enum meanings and target_id requirements. The description adds only light context about comparing the new fact with returned candidates, which is useful but does not materially go beyond the schema.

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?

The description states a specific action ('Settle a possible conflict'), ties it to a precise trigger from save_memory, and distinguishes it from update_memory. An agent can identify the resource and operation without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly says to use this after save_memory returns needs_resolution, warns against other purposes, and names update_memory as the alternative when the fact id is already known. This is clear when-to-use and when-not-to-use guidance.

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