Skip to main content
Glama

approve_and_merge

Approve reviewed worktree changes and merge them into the repository, or export a patch, then clean up the temporary Git worktree.

Instructions

Approve the reviewed worktree changes, merge them cleanly into the repository (or export a patch), and clean up the temporary Git worktree.

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": {
      "taskId": "<taskId>"
    },
    "name": "approve_and_merge"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskIdYesTask ID to approve and merge.
commitMessageNoCustom Git commit message for the merged change.
mergeStrategyNoMerge mode: "squash" (default, clean single commit), "merge" (--no-ff), or "patch-only" (export .patch without touching main branch).
forceWithoutGatePassNoExplicitly allow merging even if automated gate checks failed (default: false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose the meaningful side effects: committing into the repository, an alternate export-a-patch path, and deletion of the temporary Git worktree, which signals a mutating and partially irreversible operation. It omits that automated gate checks must pass first (only implied by the forceWithoutGatePass parameter), whether cleanup is skipped in patch-only mode, and what happens to the worktree on failure.

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?

A single front-loaded sentence that enumerates the three effects in execution order with zero filler. The parenthetical correctly scopes the non-standard patch branch.

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 four-parameter mutation tool with no output schema, the description covers the key outcomes and the schema covers every parameter including the gate-check override. It stops short of describing failure behavior or what the caller receives after the merge/cleanup, leaving a small gap.

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 taskId, commitMessage, mergeStrategy, and forceWithoutGatePass are already fully documented with defaults and enum semantics. The description's '(or export a patch)' merely echoes mergeStrategy's patch-only mode and adds no new parameter meaning, so the baseline 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?

Names three specific actions (approve, merge, clean up) against a concrete resource (reviewed worktree changes), so an agent knows exactly what the call does. It does not explicitly contrast itself with siblings such as request_rework or abort_task, which is the only thing keeping it from a 5.

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?

The phrase 'reviewed worktree changes' implies this is the post-review terminal step, but there is no explicit when-to-use statement, no exclusions, and no pointer to request_rework for the case where the changes are not acceptable. Usage must be inferred.

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