Skip to main content
Glama

Fix Issue

fix_issue
DestructiveIdempotent

Open a draft pull request that fixes one issue of the caller's account, on the customer's own repository. The order that works: call list_issues to pick an open issue (status NEW, ONGOING or REGRESSED), call get_issue and read its investigation block, and when that block names a root cause that was code-verified (found in the repository, not guessed from telemetry alone), call fix_issue with the fingerprint. The answer is the start of the fix, not its result: RUNNING means the fix started and can take half an hour, after which the fix block of get_issue carries the draft pull request link or the reason none was opened. INELIGIBLE carries a reason: for NO_BRIEF call start_investigation, wait until get_issue shows the investigation block, then call fix_issue again; for PR_ALREADY_OPEN read the open pull request's link on get_issue, which is the fix; ISSUE_NOT_OPEN means the issue is resolved or suppressed so there is nothing to fix; ISSUE_UNKNOWN means the fix service could not read the issue's status, so confirm the fingerprint with get_issue. BUSY on another issue means wait for that fix and call again; BUSY on this issue means its own fix is already running, so read its fix block on get_issue. PR_OPENED means the pull request was opened now and its link is on get_issue. FAILED means the fix failed for the reason given; starting again retries only the pull request when a branch was pushed. UNAVAILABLE means the fix service did not answer in time and may have started, so read the fix block on get_issue before calling again. NOT_FOUND means the account holds no issue with that fingerprint; NOT_AN_ISSUE means it is a problem on the Overview, which is fixed from its page, not here. DISABLED means the account has not switched fixes on; INVALID_HINT names the hint rule broken. Read next on the answer for what to do. The fix never merges anything: a person reviews the draft pull request.

Input Schema

NameRequiredDescriptionDefault
hintNoOne line for the engineer writing the fix, such as where the defect lives or what to leave alone (default none; at most 500 characters, no line break, plain prose only: no [ or ] and no ===)
fingerprintYesThe issue fingerprint (from list_issues)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only mark this as a destructive, open-world, idempotent write; the description carries far more: the operation is asynchronous (RUNNING can take half an hour), the outcome is surfaced later on get_issue's fix block, retries only re-push the pull request rather than re-doing work, and nothing is ever merged. The full status taxonomy (INELIGIBLE, BUSY, PR_OPENED, FAILED, UNAVAILABLE, DISABLED, etc.) with per-case recovery makes the behavior predictable in a way no annotation could.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded correctly: what it does, then the order of operations, then the result semantics. Every clause carries recovery information, but it is delivered as one unbroken wall of text with a status-code dump that would be far more scannable as a short list.

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?

There is no output schema, so the description must explain returns — and it does, covering both the immediate answer and the deferred fix block on get_issue. Given an async mutation with a rich failure taxonomy and only two parameters, nothing an agent needs in order to call it, interpret it, or recover from an error is missing.

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%, so both parameters are already documented; the description only adds provenance for the fingerprint (it comes from the investigation block via get_issue/list_issues). The optional hint parameter is never mentioned in the description at all, so the schema does the remaining work. 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?

States a specific verb and resource ("open a draft pull request that fixes one issue") plus scope (caller's account, customer's own repository). It is unambiguously distinguishable from siblings like get_issue, list_issues, and start_investigation, which it names explicitly.

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?

Gives an explicit prerequisite chain: list_issues to pick an eligible issue, get_issue to read the investigation block, and only then fix_issue with a code-verified root cause. It also routes to the alternative tool (start_investigation) for the NO_BRIEF case and tells the agent when NOT to call (ISSUE_NOT_OPEN, NOT_AN_ISSUE).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources