Skip to main content
Glama

uvcs_merge_preview

Read-onlyIdempotent

Preview a merge without changing anything: see files taken from the source, items added, moved or deleted, and conflicts. Read-only, targeting the workspace branch or a specified destination.

Instructions

Preview a merge without changing anything: files that would be taken from the source, items added/moved/deleted, and conflicts. Without destination the target is the workspace branch; with destination the preview is computed on the server for that branch. Read-only.

Input Schema

NameRequiredDescriptionDefault
sourceYesMerge source: a branch such as /main/task, cs:94, lb:LABEL, or sh:12.
maxItemsNoMaximum number of conflicts, and separately of changes, to return, from 1 to 5000. Default: 300. Counts always cover everything.
destinationNoOptional destination branch such as /main. Omit to preview a merge into the current workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false. The description adds real behavioral context by stating 'without changing anything' and explaining that providing a destination changes where the preview is computed (on the server for that branch). It does not discuss permissions, rate limits, or output pagination, but with annotations covering safety this is a meaningful addition.

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 three tight sentences with zero filler: it front-loads the read-only preview purpose, then details the destination behavior. Every sentence earns its place.

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?

There is no output schema, so the description usefully enumerates the categories of preview results. Annotations cover the safety profile and the schema covers all parameters completely. The only minor gap is the lack of explicit guidance on how this tool relates to merge_prepare and merge_confirm.

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 100%, so the baseline is 3. The description adds value beyond the schema for the 'destination' parameter by explaining that its presence shifts preview computation to the server for that branch, which is not explicit in the schema's own description.

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 uses a specific verb and resource ('Preview a merge') and immediately enumerates the three categories of output (files taken from source, added/moved/deleted items, conflicts). This distinguishes it from the merge_prepare and merge_confirm siblings without needing to name them.

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?

It clarifies the effect of supplying or omitting 'destination' (workspace branch vs server-side computation), which is useful usage context. However, it never explicitly says when to use this preview versus uvcs_merge_prepare or uvcs_merge_confirm, leaving the alternative-routing guidance implied rather than stated.

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