Skip to main content
Glama

resolve_stack

Map minified stack traces from a TraceBug bug report back to original source files and lines using project .map files, returning bundled and original positions for each frame.

Instructions

Map the minified stack traces in a TraceBug bug report to original source files/lines using .map files found in the current project (run from the repo that built the app). Returns bundled and original positions per frame.

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": "resolve_stack"
  }
}

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 (default: the current working directory). Point at your build output if maps aren't found.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does a decent job: it discloses the data source (.map files in the current project), the execution environment constraint, and the per-frame return shape ('bundled and original positions'). It omits failure behavior when maps are missing, which the schema hints at but the description never states.

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 action and followed by the return contract. Every clause earns its place, including the parenthetical about running from the building repo.

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?

For a two-parameter tool with full schema coverage and no output schema, the description covers source of truth, environment constraint, and return shape. The main residual gap is what happens on a failed map lookup, which matters for an agent deciding whether to retry with a different searchDir.

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 documents both the report path/identifier and the map search directory. The description reinforces the .map lookup context that gives searchDir its meaning but adds no new syntax or format detail beyond the schema.

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?

The description gives a precise verb and resource: it maps minified stack traces from a TraceBug bug report back to original source files/lines via .map files. That is clearly distinct from siblings like get_bug_report or list_bug_reports, though it never names an alternative to contrast against.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It implies when to use it (a report whose stack traces are minified) and gives one real precondition, 'run from the repo that built the app.' There is no explicit when-not guidance and no named alternative for cases where source maps are unavailable or traces are already unminified.

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