Skip to main content
Glama

WritersLogic verifiable AI agents

lockfile-merge

Resolve git conflict markers in package-lock.json or a YAML lockfile — Takes a lockfile (package-lock.json or a YAML lockfile such as pnpm-lock.yaml) containing git merge-conflict markers, rebuilds both sides, and merges them key by key (using the diff3 base when present), returning the resolved file or the exact conflicting key paths with both values, for agents rebasing or merging branches. An optional prefer=ours|theirs applies one explicit policy to the remaining

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": {
      "content": "<content>"
    },
    "name": "lockfile-merge"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoDefault auto: JSON when the file starts with { or [.
preferNoPolicy for keys changed on both sides. Default none: report them.
contentYesWhole file text; YAML at most 100000 characters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description still carries the behavioral burden well: it discloses the merge algorithm, the use of the diff3 base, the dual outcome (resolved file vs. exact conflicting key paths with both values), and the effect of prefer=ours|theirs on remaining conflicts. It does not say what happens for input without conflict markers or for malformed content, so it falls short of fully disclosing failure behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded and the middle is dense but useful. However, the final sentence is cut off mid-thought ('to the remaining'), and the lockfile-type enumeration is repeated twice, which costs clarity in a description that is already long.

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 pure computation tool with three parameters and no output schema, the description explains both return shapes (resolved file or conflicting key paths with both values) and the policy option, which is what an agent mainly needs. It is only missing error and non-conflict input behavior to be fully complete.

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 the schema already documents content, format, and prefer. The description reinforces the prefer policy ('applies one explicit policy to the remaining') but that sentence is truncated and adds little beyond the enum documentation; the format parameter is not discussed at all in the 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?

States a specific verb and resource — 'Resolve git conflict markers in package-lock.json or a YAML lockfile' — and then explains the mechanism (rebuilds both sides, merges key by key, diff3 base). An agent can tell this apart from generic diff or patch tools without opening the schema.

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?

The scope is made explicit: 'for agents rebasing or merging branches', and the input must already contain conflict markers. That is a clear usage context, but there is no statement of when not to use it and no named alternative for related tasks like JSON patch conflicts or pre-merge review.

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.

Resources