Skip to main content
Glama

ralph_merge

Destructive

Merge a completed PRD branch into main and clean up its worktree, with optional conflict resolution, verification, and quality-check controls.

Instructions

Merge completed PRD to main and clean up worktree. MCP executes directly without Claude context.

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": {
      "branch": "<branch>"
    },
    "name": "ralph_merge"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoSkip verification checks (default: false)
branchYesBranch name to merge
onConflictNoOverride conflict resolution strategy
skipQualityChecksNoSkip type check and build (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.4

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and non-idempotent, so the safety profile is covered; the description adds value by disclosing that the worktree is cleaned up as a side effect. It says nothing about what force/skipQualityChecks bypass, what happens on conflict by default, or whether the merge is reversible. The sentence "MCP executes directly without Claude context" is cryptic and adds little operational meaning.

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?

Two short sentences with the primary action front-loaded and no filler. The second sentence is ambiguous enough that it does not fully earn its place, but the definition is otherwise tight.

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

Completeness3/5

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

For a destructive, non-idempotent merge with four parameters and no output schema, the definition covers the core action and one side effect but omits conflict behavior, verification steps being skipped, and any post-merge state. Annotations carry the danger signal, yet an agent still lacks enough to call this confidently in edge cases.

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 every parameter including the onConflict enum is already documented in the schema. The description adds no extra meaning about branch naming expectations or when to set force versus skipQualityChecks, so the baseline of 3 applies.

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 ("Merge completed PRD to main") plus a secondary effect ("clean up worktree"), which is more informative than the title. It does not differentiate from the plausible alternative ralph_merge_queue, leaving the agent to guess which merge path to take.

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?

Usage is only implied by the word "completed" — the PRD must be finished before merging. There is no explicit when-to-use/when-not guidance, no mention of prerequisites such as a clean worktree or passing checks, and no named alternative for queued or batch merges.

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