Skip to main content
Glama

merjax_set_auto_merge

Idempotent

Arm (enabled: true) or disarm (enabled: false) auto-merge on one PR: it merges by itself through the full gated merge chain (CI, required checks, branch protection, CODEOWNERS, risk) once CI and every required check are green and no reviewer with write access has changes requested. Stays armed while anything is pending; last_attempt.reason says what it waits for. Arming is also the merge train's consent: on a repository with the train on, the train merges only armed PRs, so disarming holds the PR from it (an explicit merjax_merge_pr still merges). Requires write access and 'repo' scope. merge_method: 'merge' only. Returns {number, auto_merge}.

Input Schema

NameRequiredDescriptionDefault
repoYesRepo name
ownerYesRepo owner — username or organisation slug
numberYesPR number
enabledYestrue = arm, false = disarm
merge_methodNo'merge' (default; the only method the gated chain has)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A5/5.0
Behavior5/5

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

Beyond simple annotations, the description explains the complex operational behavior, such as the full gated merge chain it uses, its state retention while pending, and the internal mechanisms used (like `last_attempt.reason`). This is valuable behavioral context.

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?

Despite its technical density, the description is highly concise, using structured prose to layer complex logic efficiently. Every sentence provides unique operational insight.

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

Completeness5/5

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

The definition is extremely complete for this complex feature. It covers not only the immediate action but also the upstream triggers, downstream persistence, and necessary context (like write access and scope) required for correct use.

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

Parameters5/5

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

While schema coverage is high, the description adds critical semantics, specifically clarifying that `enabled` is true for arm and false for disarm, and that `merge_method` is restricted to 'merge' only.

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 purpose is explicitly defined as arming or disarming auto-merge on a specific PR, clearly identifying the resource (PR) and the state being controlled (auto-merge). It distinguishes this function from standard merging.

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?

The description provides highly nuanced usage guidelines, detailing the precise conditions under which a merge occurs (green CI, checks passed, no pending changes) and how the tool interacts with sibling tools/concepts like the 'merge train' and explicit `merjax_merge_pr` calls.

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