Skip to main content
Glama

merge_pull_request

Merge a pull request in an open GitHub repository using merge, squash, or rebase, with a required confirmation phrase to prevent accidental merges.

Instructions

Merge a pull request in the open repository. Requires owner confirmation phrase to prevent accidental merges.

Input Schema

NameRequiredDescriptionDefault
numberYes
mergeMethodNo
confirmationPhraseYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations provided, the description carries the full behavioral burden. It usefully discloses that an owner confirmation phrase is required to prevent accidental merges, adding safety context beyond the schema. However, it does not describe permissions, irreversibility, or other side effects of the merge operation.

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?

The description is two efficient sentences with the core purpose front-loaded and the safety prerequisite immediately following. There is no filler or redundant information.

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 mutation tool with no annotations, no output schema, and 0% schema description coverage across three parameters, the description is too thin. It omits parameter meanings, merge method effects, required permissions, and expected outcomes, leaving significant gaps for safe invocation.

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%, so the description must compensate for all three parameters. It only indirectly explains confirmationPhrase as a safety measure and does not explain the pull request number or the mergeMethod enum values ('merge', 'squash', 'rebase'), leaving most parameter semantics undocumented.

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 specific verb and resource: 'Merge a pull request in the open repository.' This clearly distinguishes it from sibling tools like create_pull_request and list_pull_requests, so an agent can identify the operation without opening the schema.

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?

The description mentions a required confirmation phrase to prevent accidental merges, which is a useful prerequisite, but it gives no explicit guidance on when to use this tool versus alternatives or under what conditions merging is appropriate. The usage context is only implied by the tool name.

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