Skip to main content
Glama

merge_pull_request

Merge reviewed pull requests by executing an on-chain transaction, returning the transaction hash for verification.

Instructions

Use this when a PR has been reviewed and is ready to merge. Merges via an on-chain transaction. Returns the transaction hash. Requires 'owner', 'name', and 'pull_iid'. See also: get_pull_request, list_pull_requests.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ownerYesRepository owner (username or DAO name)
nameYesRepository name
pull_iidYesPull request number (IID)
providerNoGit server provider address (defaults to gitopia15nv5vf6fmww8cxr6emrzxjvj36x5n8xvsxsqpw)
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It successfully reveals the critical on-chain execution nature, the return value format ('transaction hash'), and implies the operation's irreversibility and cost implications through the 'on-chain transaction' phrasing. It lacks specific details on failure modes or gas requirements, but covers the essential behavioral traits.

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?

Every sentence earns its place: trigger condition, execution mechanism, return value, required parameters, and related tools. The information is front-loaded with the usage condition, and the total length is appropriately concise for the complexity of the operation. No redundant or filler text.

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 the absence of annotations and output schema, the description adequately compensates by specifying the return type (transaction hash) and execution context (on-chain). For a significant write operation, it could benefit from explicit warnings about irreversibility or permission requirements, but it provides sufficient context for an agent to invoke the tool correctly.

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?

The input schema has 100% description coverage, establishing a baseline of 3. The description reinforces which parameters are required ('owner', 'name', and 'pull_iid'), which provides marginal value in emphasizing the core identifiers, but does not add semantic depth (e.g., example formats, validation rules) beyond what the schema already provides.

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 the specific action ('merges'), the trigger condition ('when a PR has been reviewed and is ready to merge'), and the unique execution method ('via an on-chain transaction'). It effectively distinguishes this from sibling read operations like get_pull_request by explicitly contrasting the merge action with the 'See also' references.

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?

Provides explicit guidance on when to use the tool ('when a PR has been reviewed and is ready to merge') and references related sibling tools (get_pull_request, list_pull_requests) to help the agent locate prerequisite information. It could be improved by explicitly stating when NOT to use it (e.g., if conflicts exist) or mentioning rejection alternatives, but the positive guidance is clear.

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

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