Skip to main content
Glama
mcp-server-github

mcp-server-github

by DebuggingMax

create_pull_request

Creates a GitHub pull request to merge changes from a head branch into a base branch, with title and optional description or draft status.

Instructions

Create a new 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>",
      "title": "<title>",
      "head": "<head>",
      "base": "<base>"
    },
    "name": "create_pull_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseYesThe branch you want to merge into
bodyNoPR description
headYesThe branch with your changes
repoYesRepository name
draftNoCreate as draft PR
ownerYesRepository owner
titleYesPR title

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.3/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 disclosure burden, and it says nothing beyond the fact that this is a create operation. It omits permission/auth requirements, behavior when a PR already exists for the same head/base, and whether omitted optional fields like draft default to false. The word "Create" is consistent with a mutation, so there is no contradiction, just a large 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?

It is a single short, front-loaded sentence with no wasted words. Brevity here tips into under-specification rather than efficient communication, so it earns a middling score rather than a high one.

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 7-parameter, 5-required mutation with no annotations and no output schema, the description should at minimum state that it creates a PR on an existing repo/branch pair and what can go wrong. The fully documented schema compensates for parameter naming, but behavioral context is essentially absent.

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% and all seven parameters (owner, repo, title, head, base, body, draft) are documented inline, so the baseline is 3. The description adds no extra meaning such as head/base branch naming conventions or draft semantics, but the schema already covers the essentials.

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

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Create a new pull request" is essentially the tool name spelled out with spaces; it adds no scope, target system, or distinguishing detail. It does name a verb and a resource, so it is not misleading, but it is a tautological restatement rather than a specification.

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 at all: nothing about prerequisites (e.g. branch must exist, no duplicate PR), and no routing toward siblings such as get_pull_request or merge_pull_request. The agent must infer everything from the tool name and schema.

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