Skip to main content
Glama

conflicts_get

Fetch a sync conflict by its global ID to inspect local and remote content snapshots, the unified diff, change counts, and on-disk path before resolving it.

Instructions

Fetch one sync conflict by its global ID (gid), for the Conflict Manager. Returns the full ConflictRecord including both content snapshots (local_content, the canonical file as it is on THIS machine, and remote_content, the version that arrived from the other machine), the unified line diff, addition/deletion counts, and the conflict copy's on-disk path. If there is no unresolved conflict for the gid it returns the most recent resolved one; returns an error if no conflict exists at all. gid is '<local_id>@<machine_id>' as reported by conflicts_list. Read-only; no side effects, auth, or rate limits. After reviewing the diff, resolve with conflicts_resolve.

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": {
      "gid": "<gid>"
    },
    "name": "conflicts_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
gidYesGlobal ID of the conflict, e.g. '104@4f9e1a8b3c7d2e0f' (as returned by conflicts_list).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv7.2.2

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden, and it does well: it declares read-only with no side effects, auth, or rate limits, and discloses the non-obvious fallback (returns the most recent resolved conflict when none is unresolved) plus the error case.

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-loaded with the action and identifier, then the return shape, then the fallback/error behavior, then the follow-up call; every sentence carries information. The enumeration of returned fields is slightly long but justified by the absence of an output schema.

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?

A single-parameter read tool with no output schema, and the description covers the identifier format, the returned record contents, the fallback and error behavior, safety profile, and the natural next tool. Nothing an agent needs in order 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.

Parameters4/5

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

Schema coverage is 100% so the baseline is 3, but the description adds real meaning beyond the schema by explaining the gid composition '<local_id>@<machine_id>' rather than only repeating the example already in the schema. This helps an agent construct or validate the identifier.

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 and resource ('Fetch one sync conflict by its global ID') and scopes it to a single conflict, which clearly separates it from the sibling conflicts_list that enumerates them.

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 a clear entry condition (gid as reported by conflicts_list) and an explicit next step ('resolve with conflicts_resolve' after reviewing the diff), establishing the workflow position. It does not name a negative case, e.g. when to call conflicts_list instead, but the sequencing context is unambiguous.

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