Skip to main content
Glama

resolve_conflicted_copy

Merges a conflicted copy back into its original note, records the merge as one undoable change, then deletes the copy. Requires the listed copy name, a token, and user confirmation.

Instructions

Merge a conflicted copy into the note it came from, then delete the copy, as one recorded change (history_vault shows it; undo_last_vault_change undoes it). copy is the file name list_conflicted_copies returned.

Ask the user first, every time: the merge changes the note. Show the user what list_conflicted_copies reported, then call this with user_confirmed=true only after they said yes. Without it nothing is written and an error says why. For kind conflict, never choose a side yourself. Show the user both versions of each clash and pass their answers: choices holds "a" (the kept file) or "b" (the copy) for each clash, in order. The other kinds take no choices; passing them is an error.

token is required, for every kind: pass the one list_conflicted_copies returned for this copy. If either file changed since the listing, nothing is written and an error says so: list again. Returns {resolved, kind, commit} or {error}.

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": {
      "copy": "<copy>"
    },
    "name": "resolve_conflicted_copy"
  }
}

Input Schema

NameRequiredDescriptionDefault
copyYes
tokenNo
choicesNo
user_confirmedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations at all, the description carries the full burden and does: it discloses the destructive delete of the copy, that the merge is atomic and recorded, that it is undoable via undo_last_vault_change, that a missing confirmation writes nothing, and that a stale listing writes nothing. It also states the gating error conditions and the return shape for both success and failure.

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 operation and its history/undo hooks, then organized into confirmation, per-kind choices, and token/precondition paragraphs — an agent can act on it without re-reading. It runs slightly long and restates the confirmation requirement twice ("ask the user first, every time" and "only after they said yes"), but no sentence is truly disposable.

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 destructive, user-gated mutation with zero annotation coverage and no output schema, the description supplies the safety profile, preconditions, and both return shapes. The remaining gap is the undeclared `kind` discriminator, which drives the `choices` rules and is not derivable from the input schema.

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 description coverage is 0%, yet the description defines all four parameters well beyond their bare types: `copy` is the name list_conflicted_copies returned, `token` is required for every kind and comes from that listing, `choices` holds "a" (kept file) or "b" (copy) per clash in order and is an error for non-conflict kinds, and `user_confirmed` gates all writes. The deduction is for referencing a `kind` that never appears in the schema — the agent must infer where kind comes from (presumably the listing entry), which is the one semantic hole.

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 with full scope: merge a conflicted copy into its source note, delete the copy, all as one recorded change. It names the sibling tools that observe and reverse the effect (history_vault, undo_last_vault_change) and the sibling that supplies its input (list_conflicted_copies), so an agent can place it precisely in the workflow.

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?

Explicit when-to-use and how: always ask the user first, show what list_conflicted_copies reported, and only then call with user_confirmed=true. It also gives an explicit exclusion — never pick a side on a `conflict` yourself, surface both versions and pass the user's answers — plus the recovery path (list again) when the token or files are stale.

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