Skip to main content
Glama

OpenSkopos

Merge two documents

merge
Read-onlyIdempotent

Merge another document into main. Gives the next version of main as a draft, with each conflict as a pair of proposed items. Resolve conflicts with the resolve tool. Give base, the common earlier version, for a three-way merge.

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": {
      "main": "<main>",
      "other": "<other>"
    },
    "name": "merge"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseNoThe common earlier version (optional): OpenSkopos JSON, YAML or Markdown text, as in the file.
mainYesThe main document: OpenSkopos JSON, YAML or Markdown text, as in the file.
otherYesThe document to merge into main: OpenSkopos JSON, YAML or Markdown text, as in the file.
pairsNoPairs that people confirmed, as [main ID, other ID]. No other items pair.
output_formatNoThe format of the document in the result. Default: the format of the input.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

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, destructiveHint=false, so safety is covered; the description adds genuinely new behavior by disclosing that the result is a draft version of main with conflicts surfaced as proposed item pairs rather than being committed. It does not state persistence or what happens to unresolved conflicts on a subsequent call, leaving minor gaps.

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?

Four short sentences, front-loaded with the core action and result, followed by the sibling routing and the one non-obvious optional parameter. No sentence is filler.

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?

With no output schema, the description usefully sketches the return value (draft next version plus conflict pairs), which is the key thing an agent needs. For a two-required-parameter tool with full schema coverage and rich annotations, this is close to complete, though idempotency/persistence semantics of the draft are left implicit.

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

Parameters3/5

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

Schema description coverage is 100%, so all five parameters are already documented; the description only supplements `base` by explaining its role in a three-way merge. The `pairs` and `output_format` parameters get no additional meaning beyond the schema, so the baseline of 3 applies.

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 opens with a specific verb and direction ("Merge another document into main") and immediately names the output shape: the next version of main as a draft with conflicts as proposed item pairs. It distinguishes itself from the sibling `resolve` tool by explicitly delegating conflict resolution there.

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?

It gives a conditional usage rule ("Give `base` ... for a three-way merge") and directs follow-up work to the `resolve` tool, which is clear context for the workflow. It stops short of stating when not to merge at all, e.g. when `diff` or `conflicts` alone would suffice.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.