Skip to main content
Glama

merge_pull_request

Combine a pull request into its target branch by selecting a merge, rebase, squash, fast-forward-only, or manually merged method.

Instructions

Merge a pull request. method in merge/rebase/rebase-merge/squash/fast-forward-only/manually-merged.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoYes
indexYes
ownerYes
methodNomerge

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

There are no annotations, so the description must carry the behavioral disclosure burden. It only states the merge action and allowed method values, but does not disclose consequences such as whether the merge is irreversible, whether write access is required, what happens on conflict, or whether the PR must be open. This is a significant gap for a mutating operation.

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 extremely concise and front-loaded: the core action appears first, followed immediately by the key method detail. Every sentence earns its place without filler or repetition.

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?

Despite having an output schema, the description omits important operational context for a mutation: no mention of required permissions, mergeability conditions, side effects, or behavior on failure. An agent would need external knowledge to safely invoke this tool in edge cases.

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 0%, so the description must compensate. It does add value by enumerating the allowed `method` values, which the schema does not define as an enum. However, owner, repo, and index are left unexplained, though their names are somewhat self-explanatory in a repository context.

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 clearly states the action: 'Merge a pull request.' It is specific about the verb and resource, and the listed merge methods further clarify the intended operation. However, it does not explicitly differentiate itself from sibling tools like update_pull_request or create_pull_request, though the merge action is fairly distinct.

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

Usage Guidelines2/5

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

No guidance is provided about when to use this tool versus alternatives, when not to use it, or any prerequisites such as mergeability or required permissions. The description simply states what the tool does without situating it among sibling pull request operations.

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

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/JakePeralta7/forgejo-mcp'

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