Skip to main content
Glama

Git Pull Request

git_pr
Destructive

Create, list, or merge pull requests across GitHub, GitLab, Forgejo, Gitea, and Bitbucket using installed provider CLIs or REST API tokens.

Instructions

Create, list, or merge pull requests / merge requests on the detected forge provider (GitHub, GitLab, Forgejo, Gitea, Bitbucket). Uses the provider CLI (gh/glab/tea) when installed, otherwise the provider REST API with a *_TOKEN env var.

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": {
      "action": "<action>"
    },
    "name": "git_pr"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseNoTarget branch (create, default main).
bodyNoPR/MR body/description (create).
headNoSource branch (create, default HEAD).
stateNoFilter for list (default open).
titleNoPR/MR title (create).
actionYesPull request operation.
methodNoMerge method (merge).
numberNoPR/MR number (merge).
repo_pathNoAbsolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument.
response_formatNoOutput format for the response.markdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.2

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the safety bar is lower, and the description adds real context on top: provider auto-detection, the CLI-first path (gh/glab/tea) with REST fallback, and the *_TOKEN env-var requirement for the API path. It does not state that merge is irreversible or what create returns, which is a minor gap given annotations already flag destructiveness.

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

Conciseness5/5

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

Two tightly packed sentences, front-loaded with the actions and resource, then the execution model. No filler and no repetition of schema or title content.

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

Completeness3/5

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

For a 10-parameter, destructive, open-world tool with no output schema, the description covers authentication and execution strategy but leaves the create-then-merge workflow implicit: it never says create yields an identifier that merge's `number` requires, nor what the markdown/json response contains. Adequate but with clear informational gaps.

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 every parameter, its enum options, defaults, and the action-conditioned applicability (create/list/merge) are documented in the schema itself. The description adds no parameter-level meaning beyond that, so the 3 baseline 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?

The description names three specific verbs (create, list, merge) and the resource (pull requests / merge requests), and scopes it to the detected forge provider with a concrete provider list (GitHub, GitLab, Forgejo, Gitea, Bitbucket). That framing implicitly separates it from local-operation siblings like git_merge, but no sibling is named explicitly, so it stops short of a 5.

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

Usage Guidelines3/5

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

Usage is only implied by the action enum; the description never states when to choose create vs list vs merge, nor when to prefer a sibling such as git_merge for local merges. The one genuine routing hint is that it targets a forge-hosted PR/MR rather than local branch work.

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