Skip to main content
Glama

Merge a branch

branches.merge

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
confirmNoMust be true to run a destructive operation, after the user approved it
project_idNoProject id. Optional: defaults to the project created or used last in this session, or the only one.
organization_idNoOrganization id. Optional: defaults to the token's organization, or the only one you belong to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the annotations, the description discloses the two-phase plan/apply model, that the dry run surfaces the plan and conflicts, and the required authorization scope (branches:write). It does not state irreversibility or how conflicts must be resolved, which would be useful for a mutation tool.

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 compact passage that front-loads the action, then the dry-run default, then the apply condition, then the scope. No redundant restatement of the title or name.

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 with no output schema, it covers the default mode, the confirmation gate, what a dry run returns, and the auth scope. Missing only edge-case behavior such as handling of conflicts or whether an applied merge can be undone.

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; the description goes further by explaining the relationship between apply and confirm as a gated pair and by clarifying the default target of 'into'. The remaining parameters (project_id, organization_id, branch) are left entirely to the schema.

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 gives a specific verb and resource ('Merge a branch's schema changes into its parent') and explicitly states what is merged (schema changes) and the default target (production). This clearly separates it from siblings like branch.diff (inspection) and branches.list (enumeration).

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?

It explains the default dry-run behavior and the exact condition needed to actually apply ('apply: true with confirm: true'). It does not explicitly name alternatives such as branch.diff for previewing differences before merging, so the guidance is strong but not complete on sibling routing.

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