Skip to main content
Glama

Merge fix PR

merge_fix
DestructiveIdempotent

Squash-merge a fix attempt's GitHub PR, mark the linked report as fixed, and notify the reporter. Ensures CI is green before merging.

Instructions

Squash-merge the GitHub PR for a fix attempt, mark the linked report fixed, and notify the reporter. Re-readies the PR first if it is still a draft. Returns { merged, reportStatus }. Write; destructive and irreversible from Mushi's side — once GitHub merges into the target repo's default branch there is no unmerge endpoint, only a manual revert PR outside this tool. Idempotent — re-running an already-merged attempt is a safe no-op. Prerequisite: CI green (check with refresh_ci); confirm the diff and CI status with the user before calling on a PR you have not reviewed. Use to ship a fix opened by dispatch_fix; use transition_status to change state without merging.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fixIdYesFix attempt UUID whose GitHub PR should be squash-merged
mergeMethodNoGitHub merge method (default squash)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
mergedNoTrue when GitHub accepted the merge in this call
reportIdYesReport UUID linked to this fix attempt
reportStatusYesReport workflow status after merge bookkeeping
alreadyMergedNoTrue when the PR was already merged (idempotent no-op)
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true. Description adds crucial context: irreversible from Mushi's side (no unmerge endpoint, only manual revert PR), safe no-op if already merged, and preconditions like CI green. No contradiction with annotations.

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?

Five sentences, front-loaded with main action, then behavioral notes and usage guidelines. No wasted words; every sentence adds value.

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

Completeness5/5

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

Output schema provided, return value mentioned in description. Annotations cover safety traits. Prerequisites and alternatives are given. Sibling tools are referenced. Complete for a tool of this complexity.

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 coverage is 100% and both parameters (fixId, mergeMethod) are well-described in schema. Description does not add significant new info beyond the purpose mentioning 'squash-merge' (default method). Baseline 3 is appropriate.

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?

Description clearly states the tool squash-merges a GitHub PR for a fix attempt, marks the report fixed, and notifies the reporter. It distinguishes from sibling tools like transition_status (change state without merging) and dispatch_fix (opens a fix).

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?

Explicitly states when to use: 'Use to ship a fix opened by dispatch_fix; use transition_status to change state without merging.' Also provides prerequisites: CI must be green, and user should confirm diff and CI before calling on unreviewed PRs.

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/kensaurus/mushi-mushi'

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