Skip to main content
Glama

resolve

DestructiveIdempotent

Settle a diverged item by keeping one revision hash and discarding every other current head; omitting any head fails loudly instead of silently losing it.

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.

  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?

Beyond the annotations, the description discloses critical behaviors: omitting a current head causes failure, replica calls queue instead of writing, the head set is rechecked under the write lock, and the call rejects heads appearing mid-decision. It also states the reply string, which is essential because there is no output schema.

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 earns its place: purpose, precondition, required parameter semantics, replica behavior, race-condition handling, and output format. It is front-loaded with the most important information and contains no filler.

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 destructive, multi-condition resolution tool with no output schema, the description covers all necessary context: when to use it, how to select keep/discard, what happens on a replica, how races are handled, and what the reply or refusal looks like. Nothing needed to call it correctly is missing.

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 baseline is 3. The description reinforces the keep/discard semantics and the all-or-nothing discard requirement, but it mostly restates what the schema already says rather than adding new parameter meaning.

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 clearly states the tool's purpose: settling an item with more than one current head, i.e., what get reports as DIVERGED. It names the specific verb, resource, and trigger condition, and distinguishes this from normal revision tools by tying it to the divergence state.

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 explicitly says when to use this tool (when get reports DIVERGED) and gives preconditions like reading history first and never guessing which head is real. It does not name sibling tools as alternatives, but the usage context is clear enough that an agent would not confuse it with revise or retract.

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