Skip to main content
Glama

locate_bug_tool

Locate files likely responsible for a bug from a repo and bug description. Returns a HOT/WARM/COLD heatmap with evidence and verification notes for prioritized reading.

Instructions

Locate the files most likely responsible for a bug, via a stigmergic ant-swarm search over the repo. Returns a markdown HOT/WARM/COLD heatmap with per-file evidence and, for HOT files, adversarial verification notes. This is a suggestion to prioritize reading, not a verdict -- always read the flagged files yourself before concluding.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repo_pathYes
stack_traceNo
bug_descriptionYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With no annotations, the description carries the full burden. It discloses that the result is a 'suggestion' and warns to 'always read the flagged files yourself before concluding'. It also reveals the output includes 'adversarial verification notes' for HOT files, adding transparency about the tool's analytical rigor and limitations.

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?

The description is three sentences, each serving a distinct purpose: action/method, output format, and usage caution. There is no redundant phrasing, and the technical term 'stigmergic ant-swarm' adds specificity without being wasteful.

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 description covers the core purpose, output format, and a critical caveat. It mentions the return format (markdown heatmap) which aligns with the existence of an output schema. However, it does not clarify how the optional stack_trace parameter affects behavior or provide any implementation details, leaving a moderate gap in completeness given no annotations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and the description does not explain any parameter semantics. It neither specifies what repo_path should contain, how to phrase bug_description, nor the optional nature of stack_trace. The parameter names are self-explanatory, but the description adds no explicit guidance, failing to compensate for the schema's lack of descriptions.

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 clearly states the tool's purpose: 'Locate the files most likely responsible for a bug' via a specific method ('stigmergic ant-swarm search'). It also details the output format (HOT/WARM/COLD heatmap), making the tool's functionality unmistakable. With no sibling tools, differentiation is not needed, but the verb+resource+method structure is strong.

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 clear context: use this when you want to prioritize files to read for a bug. It explicitly frames the output as 'a suggestion to prioritize reading, not a verdict', which guides interpretation. However, it does not mention when not to use this tool or any alternatives, as there are no siblings listed.

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/Sharann-del/Ichnus'

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