Skip to main content
Glama

mt_merge_resolve

Submit complete merge conflict resolutions for a project branch using a preview token, choosing to keep both, replace, or drop each conflicting item.

Instructions

使用预览 token 提交完整冲突决议

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": {
      "project": "<project>",
      "branchId": "<branchId>",
      "token": "<token>",
      "resolutions": "<resolutions>"
    },
    "name": "mt_merge_resolve"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYes
projectYes显式项目名,使用 mt_set_project 初始化
branchIdYes
resolutionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations supply only readOnlyHint=false, so the description carries nearly the full burden of behavioral disclosure. It says resolutions are submitted, but not whether the merge is applied atomically per branch, what happens if the token is stale, whether the operation can be undone, or what the call returns. For a mutation tool with minimal annotations this is a meaningful gap.

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?

A single short sentence with no filler, and the operative concept (preview token) is present up front. Its brevity is efficient, though it borders on under-specification for a four-parameter mutation tool.

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

Completeness2/5

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

Given four required parameters, low schema coverage, no output schema, and only a readOnly annotation, the description should clarify the token lifecycle, the resolutions payload, and the effect on the branch. None of that is covered, so an agent cannot confidently invoke it without inspecting the schema.

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

Parameters2/5

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

Schema description coverage is only 25%: only 'project' has a description. The description does not explain that 'resolutions' is an array keyed by conflict index with keepBoth/replace/drop actions, nor what branchId identifies. It adds no meaning beyond the raw schema, which leaves three required parameters effectively undocumented.

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?

States a specific verb and resource — submitting (提交) a complete conflict resolution (完整冲突决议) — plus the mechanism (预览 token). An agent can distinguish this from mt_merge, but the description never names mt_merge as the source of the preview token, so the coupling to the sibling is only implicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase '预览 token' implies this is a follow-up step after a merge preview, which gives implied usage context. However, there is no explicit statement of when to call it versus mt_merge or mt_checkpoint, no prerequisite that a preview token must first be obtained, and no note about token expiry or re-running.

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