Skip to main content
Glama

get_fix_context

Retrieves context needed to locate and fix a TraceBug bug report: failing request and response snippet, triggering user action, first error with resolved stack frames, and failing-test availability.

Instructions

One-call fix starter for a TraceBug bug report: the failing request (with response snippet), the user action that triggered it, the first error with source-map-resolved top stack frames, and whether a generated failing test is available. Call this when you're ready to locate and fix the bug.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "file": "<file>"
    },
    "name": "get_fix_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesThe report to read: a path to a TraceBug export file (.html), absolute or relative to the server's base directory — or just the filename, or a fragment of the filename or report title. Get exact paths from list_bug_reports.
searchDirNoDirectory to search for .map files when resolving stack frames (default: current working directory).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full load. It discloses the returned payload well, including the conditional "whether a generated failing test is available," which tells the agent not to assume a test always exists. It never states that the operation is read-only/non-mutating, nor what happens when the file cannot be matched or no .map files are found for frame resolution.

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?

Two sentences, front-loaded with the payload inventory and closed with the invocation trigger. Every clause in the enumeration corresponds to a distinct return component, so nothing is padding.

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?

There is no output schema, so the description must describe return content, and it does so with four concrete components for a two-parameter read tool. What is missing is routing context relative to the sibling tools that supply the same underlying data individually.

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 100%, so the schema already explains both `file` (path, filename, or fragment) and `searchDir` (directory scanned for .map files). The description adds only indirect meaning by noting that frames are source-map-resolved, which explains why `searchDir` matters, but supplies no new syntax, defaults, or matching behavior.

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?

It names the resource (a TraceBug bug report) and enumerates exactly what comes back: the failing request with response snippet, the triggering user action, the first error with source-map-resolved frames, and whether a failing test exists. That enumeration separates it from narrower siblings like get_network_activity or resolve_stack, but it never explicitly contrasts itself with get_bug_report or get_repro_steps, which return overlapping pieces.

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?

"Call this when you're ready to locate and fix the bug" gives a clear phase-based trigger: after triage, when remediation begins. There is no guidance on when not to use it, nor any named alternative for agents that only need one slice (e.g., a single stack frame), which keeps it out of 5 territory.

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