Skip to main content
Glama

fix_bug

Read-onlyIdempotent

Conduct root cause analysis and resolve bugs using an 8-step structured method. Supply stack traces, error messages, and code context for guided troubleshooting.

Instructions

当用户需要找问题、修 bug、排查异常时使用。指南型 SRC-8(TBP-inspired):注入真因工作表与门禁,由 Agent 完成 rootCauseAnalysis 并修复;MCP 不自动修 Bug

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathNo相关代码文件路径(相对 project_root 或绝对路径)。未传 code_context 时从磁盘读取
stack_traceNo堆栈跟踪。可选
code_contextNo相关代码或图谱摘要。可选
project_rootNo项目根目录绝对路径。配合 file_path 解析相对路径
analysis_modeNo分析方法。默认 src8(Software Root-Cause 8-step,受丰田 TBP 启发);tbp8 为兼容别名
error_messageNo错误信息
success_sampleNo成功/正常样本描述(Step 4 对比用)。无则 Agent 须标注对比样本不足
actual_behaviorNo实际行为。可选,用于 TBP-1 现象定义
expected_behaviorNo期望行为。可选
steps_to_reproduceNo复现步骤。可选,用于 TBP-2 时间线
verification_targetNo验收目标(Step 3 SMART 目标),如:原复现步骤通过、特定测试绿
Behavior4/5

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

While annotations indicate readOnlyHint=true and idempotentHint=true, the description adds that the agent performs the actual fix and the MCP only injects a worksheet and gatekeeping. This is consistent and provides extra context beyond annotations.

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 short, front-loaded two sentences that efficiently state purpose and behavioral notes. While concise, it could be slightly more structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 11 parameters and no output schema, the description covers the main purpose and methodology but lacks details on return values or output format. It is moderately complete.

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% with detailed descriptions for all 11 parameters. The description does not add further semantic value beyond the schema, so baseline score 3 is appropriate.

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 clearly states the tool is for finding problems, fixing bugs, and troubleshooting. It specifies a methodology (SRC-8/TBP-inspired) but does not explicitly contrast with sibling tools like 'start_bugfix' or 'code_review'.

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?

The description implies usage when user needs to fix bugs, and notes that the MCP does not automatically fix bugs. However, it lacks explicit 'when not to use' guidance or alternatives, leaving the agent to infer context from sibling list.

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