Skip to main content
Glama

Reintegrate Alignment Branch

reintegrate_branch
Destructive

Merges an edited branch (proposal Territory Solution from extract_tal_branch) back into the master. Needs branch_metadata and expected_master_revision; returns STALE_TS_REVISION when the master changed since the extract, in which case a fresh extract is needed. Merges apply one at a time.

Input Schema

NameRequiredDescriptionDefault
master_tsNo
proposal_tsNo
map_session_idNo
branch_metadataYes
master_ts_handleNo
proposal_ts_handleNo
expected_master_revisionYes
expected_master_content_hashNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / guidance_handle
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "title": "Guidance Handle"
      -}
  2. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=false), the description discloses a concrete failure mode (STALE_TS_REVISION when master changed) and a concurrency constraint ('merges apply one at a time'). That adds real behavioral value the annotations don't carry, though it omits permissions/auth and reversibility details.

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 tight sentences, front-loaded with the core action, followed by requirements and the failure/recovery note. No filler, though the parenthetical naming of 'proposal Territory Solution' is slightly dense.

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

Completeness3/5

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

An output schema exists so return values needn't be described, and the key error is covered. But for a destructive 8-param mutation with nested objects and 0% schema coverage, the description leaves most parameters and any permission/precondition context undocumented, so it is only adequately complete.

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 8 parameters, so the description must compensate, yet it names only branch_metadata and expected_master_revision. The six remaining params (master_ts, proposal_ts, map_session_id, master_ts_handle, proposal_ts_handle, expected_master_content_hash) are left entirely unexplained, including when the handle variants are used.

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?

The description gives a specific verb+resource: 'Merges an edited branch... back into the master', and explicitly identifies the branch as the proposal from extract_tal_branch, which separates it from its counterpart sibling. It stops short of distinguishing itself from other mutation siblings like territory_merge.

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 embeds the tool in a workflow by naming extract_tal_branch as the source of the branch and states the recovery path when STALE_TS_REVISION is returned (a fresh extract is needed). It gives clear context but no explicit when-not-to-use or alternative-selection rule.

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