Skip to main content
Glama

branch_merge

Merges the winning branch into the result; pass sessionId or taskId to keep the merge scoped to a specific session or task.

Instructions

Merge winning branch into result. Pass sessionId/taskId for task-scoped branching.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "branch_merge"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskIdNo
branchIdNo
strategyNo
sessionIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. Aside from implying a mutating merge, it says nothing about what gets changed or destroyed, conflict behavior, reversibility, or permissions.

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 no filler, and the core action is front-loaded. It is efficient, though the terseness contributes to the gaps in the other dimensions.

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

Completeness2/5

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

For a four-parameter, zero-annotation mutation tool with no output schema and no parameter documentation, this is far too thin. An agent cannot determine the required inputs, the meaning of 'winning branch,' or the result of the merge.

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

Parameters2/5

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

Schema description coverage is 0% across four parameters. The description only gives meaning to sessionId and taskId (task-scoped branching) and leaves branchId and strategy completely undocumented in both the schema and the text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a verb (merge) and an object (winning branch into result), so the basic action is discernible. However, 'winning branch' and 'result' are unexplained domain jargon, and nothing distinguishes this tool from siblings like branch_close, branch_switch, or branch_export.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no statement of when to use this tool versus alternatives, nor any preconditions. The second sentence is parameter-passing advice, not usage guidance, so the agent must infer the trigger conditions entirely.

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