Skip to main content
Glama

resolve

Resolve diverged memory items by specifying the surviving revision and all other current heads; omitting any head fails the call rather than discarding data.

Instructions

Code lane: settles an item with more than one current head - what get reports as DIVERGED, from two machines revising the same fact apart. Read history first; never guess which head is real. Name the surviving revision hash in keep and every other current head in discard - leaving one out fails rather than silently discarding it. On a replica this queues instead of writing ('queued for the main machine' is not an error). The head set is rechecked under the write lock, so a head that appears mid-decision fails the call loudly instead of being dropped. Replies 'resolved onto ', or the refusal text.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe diverged id.
keepYesThe revision hash that survives.
discardYesEvery other current head, in full. Leaving one out fails rather than silently discarding it.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and does so thoroughly: it discloses replica queuing ('queued for the main machine' is not an error), rechecking under the write lock causing loud failure, and the exact success/refusal reply text.

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?

The description is dense but every sentence carries operational information: purpose, preconditions, replica behavior, concurrency, and response format. It is front-loaded with the core purpose and then covers failure modes.

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?

For a mutable, concurrency-sensitive tool with no output schema and no annotations, the description covers prerequisites, failure semantics, replica behavior, and return text. An agent has enough to select and invoke it correctly.

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%, so the schema already documents id, keep, and discard. The description operationalizes keep as 'surviving revision hash' and discard as 'every other current head', but this mostly restates the schema, with no additional parameter format or value constraints.

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 names a specific verb and resource: 'settles an item with more than one current head' and ties it to the exact state 'what get reports as DIVERGED'. This clearly distinguishes it from sibling tools like get, which reports divergence, and revise, which creates divergent versions.

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?

It gives an explicit trigger condition ('what get reports as DIVERGED') and instructs the agent to 'Read history first; never guess which head is real'. It does not explicitly enumerate alternatives or when-not-to-use conditions, so it falls just short of a 5.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nworks3d/THOR-memory-bible-for-AI'

If you have feedback or need assistance with the MCP directory API, please join our Discord server