Skip to main content
Glama

job_merge

Merge a job's delivered patches by testing them in a clone at HEAD first, then applying them to the real repository only if all merge commands pass, leaving it unchanged on failure.

Instructions

Merge a job whose latest delivery passed: clone the repository at its HEAD, apply the delivery's patches, run the merge commands there, and only if all pass apply the same patches to the repository itself; any failure leaves the repository as it was.

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": {
      "job": "<job>"
    },
    "name": "job_merge"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobYesJob id, as job_post returned it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the two-phase process (clone at HEAD, apply patches, run merge commands in the clone, then apply to the real repository) and an atomicity guarantee ('any failure leaves the repository as it was'). It omits auth/permission requirements and whether it commits or pushes, so not a 5.

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?

It is a single dense sentence, but the core action and precondition are front-loaded and every clause (clone, apply, run, conditional promotion, rollback) contributes necessary detail. The semicolon-heavy packing is slightly hard to parse but not wasteful.

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 mutation tool with no annotations and no output schema, the description is thorough about the merge sequence and failure semantics. It leaves gaps around return values and side effects such as committing or pushing to a remote, which an agent would need for full confidence.

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 coverage is 100%, so the single 'job' parameter is already documented in the schema as the id returned by job_post. The description only adds the implicit constraint that the job must have a passing latest delivery; the baseline 3 applies when the schema does the heavy lifting.

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?

The description states a specific verb (merge) and resource (a job whose latest delivery passed) and outlines the exact mechanics, so the agent can tell this is the final integration step rather than a delivery or gating step. It stops short of naming a sibling alternative, but the operation itself is unambiguous.

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 precondition 'a job whose latest delivery passed' is an explicit usage gate that tells the agent when this tool is applicable, effectively implying that delivery/gating must happen first. There are no explicit exclusions or named alternatives, which keeps it from a 5.

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