Skip to main content
Glama

Update branch

update_branch
Destructive

Bring what changed on the main file since a branch was created (or last updated) into the branch, so it is reviewed and merged against the main file as it is now. Where both changed the same thing, the branch keeps its version. The branch is saved in its history first. get_file on a branch says how many changes of the main file it lacks.

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": {
      "fileId": "<fileId>"
    },
    "name": "update_branch"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileIdYesThe branch (not its main file).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, so the description's added value is the conflict policy ('the branch keeps its version') and the safeguard that the branch is saved in history first. Those are exactly the behavioral details an agent needs before invoking a destructive operation, though it says nothing about permissions or failure modes.

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?

Three short sentences, front-loaded with the core effect and followed by conflict behavior and a diagnostic hint. The first sentence is slightly dense but every sentence carries information; nothing is padding.

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 single-parameter destructive merge tool, the description covers effect, conflict resolution, and the history snapshot. With no output schema, it could say what a successful update returns or what happens on failure, which is the main remaining 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 coverage is 100% and the only parameter is documented as 'The branch (not its main file)'. The description reinforces the branch-vs-main distinction through the get_file hint, but adds no format or identification detail beyond the schema, so the baseline 3 applies.

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 concrete operation: pulling changes made on the main file since the branch was created or last updated into the branch. It makes the merge semantics and scope explicit and is clearly distinguishable from plain update tools like update_asset or update_nodes.

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 implied rather than stated: the note that get_file on a branch reports how many main-file changes it lacks hints at when this tool is needed, but there is no explicit 'use this when' or 'do not use this when' guidance and no named alternative for the situation.

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.