Skip to main content
Glama

create_pr_with_content

Creates a GitHub Pull Request with structured content including problem, solution, and key changes. Automatically uses the current branch as the head.

Instructions

Create a GitHub PR with structured content. Auto-detects current branch as head.

Required content:

  • problem: why this change is needed (2-4 sentences)

  • solution: how it works (4-8 sentences)

  • key_changes: bulleted markdown list of changes

Optional:

  • issue: GitHub issue number to close (adds "Closes #N" to PR)

Returns: {pr_number, url, state, head, base, created_at}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYes
problemYes
solutionYes
key_changesYes
issueNo
baseNomain
ownerNo
repoNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

No annotations provided, so description must carry full burden. It states auto-detection of current branch as head and specifies return fields (pr_number, url, state, etc.), but does not disclose permissions, rate limits, or side effects. It is adequate but not exhaustive.

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 well-structured with clear sections (Required content, Optional, Returns). It is concise—4 sentences plus structured lists—with no extraneous information, and the most important details are front-loaded.

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 8 parameters (4 required) and an output schema, the description covers core usage (required content, optional issue linking, return fields). It lacks explanation for owner/repo defaults (likely current repo) and edge cases like non-default base, but is complete for common use.

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?

With 0% schema description coverage, the description compensates by explaining meaning, length requirements, and defaults for most parameters (problem, solution, key_changes are specified with sentence counts; issue is explained as GitHub issue number). Base, owner, repo are mentioned but add minimal detail beyond schema defaults.

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 clearly states 'Create a GitHub PR with structured content', which is a specific verb+resource. It distinguishes from sibling tools like create_issues and merge_pr by focusing on PR creation with required structured fields.

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?

The description provides required and optional content sections, including length guidelines. It implicitly indicates usage for creating a PR with problem-solution-changes, but does not explicitly contrast with alternatives or give when-not-to-use guidance.

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/rriesco/github-mcp-server'

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