Skip to main content
Glama

create_pull_request

Creates a new GitHub pull request from a head branch into a base branch, using owner, repo, title, and optional description.

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 name of the branch you want the changes pulled into
bodyNoOptional pull request description
headYesThe name of the branch where changes are implemented
repoYesRepository name
ownerYesRepository owner
titleYesPull request title

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

C2.1/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, yet it only implies a write operation. It says nothing about required permissions or scopes, duplicate-PR error behavior, draft state, or what the response contains after creation.

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 free of waste and easy to parse, but it is undersized for a six-parameter mutation tool rather than genuinely efficient. There is no structure beyond a bare restatement.

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 six parameters, no annotations, and no output schema, the description leaves the agent without permissions, error, or return-value context. The rich parameter schema is the only thing making this callable at all.

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%, with all six parameters (owner, repo, title, head, base, body) documented in the schema itself, so the baseline is 3. The description contributes no additional meaning such as head/base branch format expectations or how body formatting is handled.

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?

The description expands the tool name into a sentence ('Create a new pull request') without adding scope, target resource details, or differentiation from siblings like create_branch or update_pull_request. It is essentially a tautology of the name, though an agent can still infer the basic operation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines1/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 merge_pull_request, update_pull_request, or list_pull_requests, and no mention of prerequisites such as the head branch needing to exist or base branch existing. Nothing indicates when this tool should not be used.

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