Skip to main content
Glama

pr_merge

DestructiveIdempotent

Enable auto squash-merge for the current chatgpt/* branch PR: once required checks pass, GitHub merges it into main and deletes the remote branch. Call after PR creation; refused on other branches.

Instructions

Enable auto squash-merge (gh pr merge --squash --auto --delete-branch) for the current chatgpt/* branch's PR: GitHub merges it into main once required checks pass, then deletes the remote branch. This is the only path to main. Call last, after pr_create. Refused on other branches.

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": "pr_merge"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, but the description adds real behavioral context: the merge is deferred until required checks pass, the remote branch is deleted afterward, and the tool refuses on non-chatgpt branches. It does not say what happens if checks fail or what the call returns, which keeps it below a 5.

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?

Short and front-loaded, with the effect stated first and constraints after. The parenthetical CLI string is slightly noisy but adds precision, and the trailing fragments ('This is the only path to main') are dense rather than wasteful.

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 zero-parameter, no-output-schema tool, the description covers trigger timing, precondition, side effect, and outcome. The notable gap is failure/return semantics for an asynchronous destructive operation, which matters because the merge is queued rather than immediate.

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?

The tool takes zero parameters, so the baseline is 4; there is no argument syntax an agent could get wrong. The description adds no parameter detail, but none is needed.

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?

Names a specific verb and resource ('Enable auto squash-merge ... for the current chatgpt/* branch's PR') and even pins the exact underlying command, so the agent knows precisely what action is performed. It is clearly distinguishable from pr_create, commit_push, and branch_start.

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?

Gives explicit sequencing ('Call last, after pr_create'), an exclusion ('Refused on other branches'), and a routing rule ('This is the only path to main'), which together tell the agent both when and when not to call it.

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