Skip to main content
Glama

merge_pull_request

Merge a pull request by specifying repository owner, repo, and pull number. Select merge, squash, or rebase method and optional commit details.

Instructions

Merge a pull request

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": {
      "owner": "<owner>",
      "repo": "<repo>",
      "pull_number": "<pull_number>"
    },
    "name": "merge_pull_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesRepository name
ownerYesRepository owner
pull_numberYesPull request number
commit_titleNoOptional title for the merge commit
merge_methodNoOptional merge method to usemerge
commit_messageNoOptional extra detail to append to merge commit message

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure, and it discloses almost nothing. It does not say that this is an irreversible state-changing operation, that merge_method selection (merge/squash/rebase) materially changes the resulting history, that merge conflicts or failed checks will cause an error, or whether the source branch is deleted. For a destructive, non-idempotent action with zero annotation coverage, this is a major gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is front-loaded and contains no filler, but brevity here reflects under-specification rather than economy. It fits appropriately short length for a simple action while omitting nearly everything an agent would need.

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?

With six parameters, a merge-method enum, no annotations, and no output schema, the description should explain mutation semantics and failure modes. It provides none of that, leaving the definition substantially incomplete for a state-changing tool.

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 description coverage is 100%, so owner, repo, pull_number, commit_title, commit_message and the merge_method enum are already documented in the schema. The description adds no syntax, format, or semantic detail beyond that, which is the expected baseline when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/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"), so the basic action is identifiable. However it gives no scope detail - which PRs it applies to, what the merged result is, or how it differs from adjacent tools like update_pull_request - so the agent must open the schema to know anything beyond the literal action.

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?

There is no guidance on when to use this tool versus update_pull_request or create_pull_request, and no prerequisites such as required review state, mergeability, or branch protection. The agent is left to infer the entire usage context.

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