Skip to main content
Glama

fix_bug

Read-onlyIdempotent

Analyze error messages and stack traces using the TBP 8-step method for root cause analysis. Output fix plans and verification steps to resolve bugs.

Instructions

当用户需要找问题、修 bug、排查异常、定位回归、分析失败原因、分析为什么没生效、先分析再修时使用。默认采用 TBP 8 步法做真因分析,并输出修复方案与验证步骤

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stack_traceNo堆栈跟踪。可选
code_contextNo相关代码。可选
analysis_modeNo分析方法。默认 tbp8(丰田问题分析 8 步法)
error_messageNo错误信息
Behavior4/5

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

Annotations declare readOnlyHint and idempotentHint, indicating no destructive side effects. The description adds transparency by detailing the TBP 8-step methodology and output (repair plan + verification steps), consistent with read-only analysis. No contradiction.

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?

The description is a single sentence that front-loads usage scenarios and methodology. It is concise but could be split into multiple sentences for better readability. No wasted words.

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?

The tool has 4 optional parameters and no output schema; the description partially covers output (repair plan + verification steps). It lacks details on output format or prerequisites, but given annotations and schema coverage, it is adequate.

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 baseline is 3. The description does not add extra meaning beyond the schema's parameter descriptions (stack_trace, error_message, etc.). No value added.

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 explicitly defines the tool's purpose: analyzing bugs, identifying root causes, and generating repair plans. It clearly distinguishes this from sibling tools like add_feature or code_review by focusing on problem-fixing contexts.

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?

The description provides specific usage scenarios (e.g., troubleshooting, regression analysis, failure cause) but does not explicitly differentiate from the sibling tool start_bugfix. The context is clear, but exclusion guidance is missing.

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/mybolide/mcp-probe-kit'

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