Skip to main content
Glama
mcp-server-github

mcp-server-github

by DebuggingMax

merge_pull_request

Merge a GitHub pull request by specifying owner, repository, pull number, and merge method (merge, squash, or rebase) to finalize code changes.

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_titleNoCustom commit title
merge_methodNoMerge method

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and discloses almost nothing: no mention of required permissions, what happens to the source branch, whether the PR closes, or failure behavior on conflicts. Only the bare fact that it is a mutating action is conveyed.

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 phrase is efficient with no wasted wording, but it is under-specified rather than concise. There is no structure beyond a fragment, and nothing is front-loaded because there is nothing else to front-load.

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

Completeness1/5

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

For a five-parameter mutating tool with no annotations and no output schema, this description leaves the agent without permissions, side effects, failure modes, or result information. It is substantially incomplete for the tool's complexity.

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 coverage is 100%, so owner, repo, pull_number, commit_title, and merge_method are already documented in the schema, including the merge_method enum. The description adds no meaning beyond the schema, which is acceptable but does not earn above the baseline.

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 names a specific verb (merge) and resource (pull request), so the basic action is unambiguous. However, it offers nothing to distinguish this from siblings like create_review or get_pull_request beyond the word 'merge', and does not state scope or effect.

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 when-to-use guidance, no prerequisites (e.g. PR must be open and mergeable), and no mention of alternatives such as create_review for reviewing before merging. The agent must infer the entire calling context.

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