Skip to main content
Glama

github_mcp.create_pull_request

Create or reconcile a GitHub pull request from a published job branch into the default branch after approval and SHA checks, returning the PR URL without merging.

Instructions

Create or reconcile a GitHub pull request for a published job branch into the configured default branch. Requires applicable local PR approval and matching remote SHA. Returns URL and existing flag; does not merge. GitHub credentials and permissions are required.

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": {
      "job_id": "<job_id>",
      "title": "<title>",
      "description": "<description>"
    },
    "name": "github_mcp.create_pull_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYesNonempty PR title, at most 200 characters.
job_idYesExisting published job identifier with applicable PR approval.
descriptionYesPR summary/body text, at most 10,000 characters; server adds commit and test details.

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
messageNo
error_codeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.0.2
    • addedInput schema / properties / description / description
      Added value: +"PR summary/body text, at most 10,000 characters; server adds commit and test details."
    • addedInput schema / properties / job_id / description
      Added value: +"Existing published job identifier with applicable PR approval."
    • addedInput schema / properties / title / description
      Added value: +"Nonempty PR title, at most 200 characters."
  2. First observedv1.0.1

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare a non-read-only, open-world, non-destructive operation, and the description adds real context on top: prerequisite approval and SHA match, the reconcile-on-existing behavior, the returned URL and existing flag, and credential/permission requirements. The only gap is that 'reconcile' is not spelled out (e.g., whether an existing PR is updated or returned unchanged).

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

Conciseness4/5

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

Three short sentences, front-loaded with the action and scope, followed by prerequisites and limits. Each sentence carries information, though the trailing credentials/permissions sentence is somewhat boilerplate.

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

Completeness4/5

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

With annotations covering the safety profile and an output schema covering return values, the description supplies what structured data cannot: the approval and SHA preconditions and the no-merge boundary. Only the precise semantics of 'reconcile' remain underspecified.

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 the schema already documents all three parameters including length limits and the server-added commit/test details. The description adds only the meaning of job_id as a 'published job branch with applicable PR approval,' which is marginal beyond the schema. Baseline 3 applies.

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

Purpose4/5

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

States a specific verb pair (create/reconcile) and resource (GitHub pull request) with explicit source scope (a published job branch) and target (configured default branch). It does not name a sibling alternative such as github_mcp.publish_branch, so differentiation must be inferred from the 'published job branch' prerequisite.

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

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear preconditions for use: applicable local PR approval and a matching remote SHA, which implicitly tells the agent to publish the branch first. It also bounds the action by stating it does not merge. It stops short of naming an explicit alternative or a when-not condition.

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