Skip to main content
Glama

git_create_pr

Create a GitHub Pull Request from the current branch targeting a specified base branch, with defaults and safety checks to prevent accidental PRs.

Instructions

Create a GitHub Pull Request from the current branch.

Requires GitHub CLI (gh) to be installed and authenticated. Refuses to create PRs where head == base (same branch) or when the current branch is main/master (to prevent accidental PRs).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyNoPR description markdown. Defaults to a generated summary.
titleNoPR title. Defaults to current branch name if empty.
base_branchNoTarget branch to merge into (default: main).main
working_dirNoRepository path. Defaults to cwd.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations are provided, so the description carries full burden. It discloses the dependency on gh CLI and safe-guards against common mistakes (same branch, main/master). However, it does not detail side effects like pushing the branch or the response format, though an output schema exists.

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?

The description is four sentences, front-loaded with the core purpose, followed by well-structured conditions. Every sentence adds essential information without fluff.

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?

Given 4 parameters, all optional with schema descriptions, and an existing output schema, the description covers prerequisites, refusal logic, and default behaviors. It is largely complete, though it could mention that the PR is created on the remote after a push (implied but not explicit).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds value by noting defaults (e.g., 'Defaults to a generated summary' for body, 'branch name' for title) beyond the schema descriptions, earning a 4.

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

Purpose5/5

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

The description explicitly states 'Create a GitHub Pull Request from the current branch,' using a specific verb and resource. It distinguishes itself by specifying it uses GitHub CLI, and no sibling tool performs the same function.

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

Usage Guidelines5/5

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

The description clearly states prerequisites ('Requires GitHub CLI (gh) to be installed and authenticated') and refusal conditions ('Refuses to create PRs where head == base... or when the current branch is main/master'). This provides clear guidance on when to use and when not to use.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/CronusL-1141/AI-company'

If you have feedback or need assistance with the MCP directory API, please join our Discord server