Skip to main content
Glama

resolve_sync_conflict

Resolve a replication conflict. prefer_remote (needs sender_peer_url) applies the remote snapshot's differing declared fields as one atomic correction transaction, so they hold until corrected again, and returns fields_applied…

Instructions

Resolve a replication conflict. prefer_remote (needs sender_peer_url) applies the remote snapshot's differing declared fields as one atomic correction transaction, so they hold until corrected again, and returns fields_applied, fields_withheld (array fields that already hold a local correction, undeclared fields; capped, names never repeated in the message) and fields_withheld_count; ok:true with a non-empty fields_withheld means a partial apply. A remote entity_type that is protected, or a governance type not named in both the matching configured peer's entity_types and accept_governance_entity_types, is refused with ok false and nothing written. manual flags sync_conflict. prefer_remote and manual need the correct capability. prefer_local and last_write_wins keep local state; source_priority only explains that a corrected field is never displaced by priority.

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": {
      "entity_id": "<entity_id>",
      "strategy": "<strategy>"
    },
    "name": "resolve_sync_conflict"
  }
}

Input Schema

NameRequiredDescriptionDefault
strategyYes
entity_idYes
sender_peer_urlNoRequired for prefer_remote — remote Neotoma base URL (GET /entities/{entity_id})
guest_access_tokenNoOptional query access_token for guest read on the remote instance

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.0
  2. Removedv0.14.0
  3. Addedv0.12.1

TDQS

A4.1/5.0
Behavior5/5

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

There are no annotations, so the description carries the full burden and does so: it discloses atomic-transaction semantics ('one atomic correction transaction, so they hold until corrected again'), partial-apply semantics (ok:true plus non-empty fields_withheld), refusal conditions (protected entity_type, governance type not in both the peer's entity_types and accept_governance_entity_types) with 'nothing written', and capability requirements. This is well beyond what the schema provides.

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 critical point (resolve a conflict, strategy-dependent behavior) is front-loaded, and nearly every clause carries new information about outcomes or preconditions. It is a dense semicolon-chained block with heavy domain jargon, so readability suffers slightly even though little is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and high behavioral complexity (five strategies plus governance gating), the description does well by enumerating return fields and refusal cases. However, it never explains what `entity_id` identifies, what `guest_access_token` is for, or what a successful prefer_local/last_write_wins call returns, leaving gaps for a 4-parameter tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 50%, and the description compensates by giving operational meaning to every enum value of `strategy` and restating the sender_peer_url requirement with its purpose (fetching the remote snapshot). It adds nothing about `entity_id` or `guest_access_token`, the latter being an uncovered optional parameter, which is the only real gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence ('Resolve a replication conflict') largely restates the tool name, but the following sentences make the operation concrete by defining what each strategy actually does to local vs. remote state. An agent can tell it apart from siblings like `correct` or `correct_transaction` only indirectly, since no sibling is named, which keeps this below a 5.

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?

Strategy-level guidance is unusually explicit: prefer_remote applies the remote snapshot, prefer_local and last_write_wins keep local state, manual flags sync_conflict, and source_priority is explanatory only. Prerequisites are stated too (sender_peer_url for prefer_remote, the 'correct' capability for prefer_remote and manual). It stops short of a 5 because it never says when to reach for this tool instead of the adjacent `correct`/`correct_transaction` tools.

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