Skip to main content
Glama

Record a fix outcome

submit_fix_result

Log an external fix PR by submitting branch, PR URL, changed files, and line counts to attach a completed fix attempt to a bug report.

Instructions

Record a fix outcome from an external agent (e.g. your own Cursor/Claude run): branch, PR URL, files changed, lines added/removed. Creates a fix_attempt row then patches it to completed and links it to the report. Returns { fixAttemptId }. Write; NOT idempotent — each call creates a new fix_attempt, so call once per PR. Use after you opened a PR outside Mushi; use dispatch_fix to have Mushi open the PR instead, or merge_fix once CI is green.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
prUrlNoGitHub pull request URL, if a PR was opened
branchYesGit branch name where the fix was implemented
summaryYesOne-line human summary of what the fix changed
reportIdYesReport UUID to attach this external fix attempt to
filesChangedYesRepo-relative paths modified by the fix
linesChangedYesTotal lines added + removed across filesChanged
idempotencyKeyNoOptional UUID — resend the same key to safely retry without creating duplicate fix rows. Omit it and a stable key is derived from reportId + branch + prUrl, so a retried submission carries the identical key instead of a fresh random one.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYesTrue when the fix_attempt row was created and marked completed
fixIdYesUUID of the new fix_attempt row
Behavior5/5

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

The description clearly discloses the write semantics and the non-idempotency 'each call creates a new fix_attempt, so call once per PR.' It also explains the lifecycle side effects (creates a row, patches it to completed, links it). The annotations already mark write and non-idempotent, but the description adds important context about side effects and safe call frequency, which is beyond what annotations provide.

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 dense yet succinct, with each sentence serving a distinct purpose: what it records, what it does, its return value, its side-effect/non-idempotency constraint, and the routing to sibling tools. The key warnings are front-loaded after the core function. No extraneous content.

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?

The description includes all necessary information for an agent to decide whether to invoke this tool instead of dispatch_fix or merge_fix, to construct the input meaningfully, and to avoid duplicate submissions. It covers the workflow stage, the side effects, the return value, and the idempotency behavior — everything needed beyond the rich schema and annotation hints.

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

Parameters5/5

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

The schema has full coverage, but the description adds meaning by enumerating the key fields (branch, PR URL, files changed, lines added/removed). Most importantly, it explains the idempotency key's derived fallback behavior, which the schema only describes as 'optional UUID' — the description clarifies that omitting the key still yields a stable key derived from reportId + branch + prUrl, which helps the agent reason about safe retries.

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 states a specific verb and resource: 'Record a fix outcome' and 'Creates a fix_attempt row,' clearly distinguishing it from the read-only report tools and other fix-related tools. It explicitly names sibling tools dispatch_fix and merge_fix, which disambiguates it from those alternatives.

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 explicitly says when to use this tool ('Use after you opened a PR outside Mushi') and when to use alternatives ('use dispatch_fix to have Mushi open the PR instead, or merge_fix once CI is green'). This leaves no ambiguity about tool selection.

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