Skip to main content
Glama

Merge a branch

branches_merge
Destructive

Merge a branch's schema changes into its parent (default production). Without apply it is a dry run that shows the plan and conflicts; apply: true with confirm: true applies it. Scope: branches:write.

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": "branches_merge"
  }
}

Input Schema

NameRequiredDescriptionDefault
intoNoTarget branch, default production
applyNoApply the merge (default false: plan only)
branchYesThe branch to merge
confirmNotrue only after the user approved the destructive operation
project_idNoProject id, e.g. `todo-app`. Default: the last one used, or your only one.
organization_idNoOrganization id, e.g. `acme`. Default: the token's.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds crucial context beyond them: the default is a non-destructive dry run, the dry run reports conflicts, and actual application requires both apply and confirm. It also discloses the required scope (branches:write), which annotations do not cover.

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?

Two compact sentences, front-loaded with the core action and followed by the dry-run versus apply distinction. Every clause carries operational meaning, and nothing is wasted.

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 destructive mutation with no output schema, the definition covers the dry-run safety path, conflict reporting, confirmation gating, and required scope. It does not describe reversal or what a successful applied merge returns, but that is a minor gap given the annotations and schema completeness.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaning by explaining the interaction between apply and confirm and by clarifying that the default behavior is plan-only. It goes beyond the per-parameter schema text, though it does not elaborate on the into or project/organization defaults.

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 states a specific verb and resource: merge a branch's schema changes into its parent. It also distinguishes the default parent (production), so an agent knows exactly what the operation affects 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly separates the two modes: omit apply for a dry run that shows the plan and conflicts, or use apply: true with confirm: true to execute. The confirmation prerequisite is stated inline, leaving no ambiguity about when the destructive path is used.

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