Skip to main content
Glama
Batyrkhan-Sk

Frontend Bug Investigator MCP

by Batyrkhan-Sk

Generate bug report

generate_bug_report
Idempotent

Builds a structured JSON bug report from an investigation's evidence—environment, steps, expected vs actual, console/network data, and candidate causes—then exports it as report.json in the artifacts directory.

Instructions

Builds a structured JSON bug report (environment, preconditions, steps, expected vs actual, reproduction status, console/network evidence, key timestamps, screenshots, candidate causes, confidence, limitations, next steps) and exports it as report.json in the artifacts directory.

Input Schema

NameRequiredDescriptionDefault
investigationIdYesId returned by start_investigation

Output Schema

NameRequiredDescriptionDefault
titleYes
statusYes
analysisYes
evidenceYes
exportPathNo
environmentYes
generatedAtYes
screenshotsYes
keyTimestampsYes
preconditionsYes
reportVersionYes
actualBehaviorYes
investigationIdYes
expectedBehaviorYes
issueDescriptionYes
reproductionStepsYes
suggestedNextStepsYes
untrustedContentNoticeYes
confidenceAndLimitationsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare it as a non-destructive, idempotent write; the description adds value beyond them by disclosing the concrete side effect (writes report.json into the artifacts directory) and the report's section structure. It does not state prerequisites such as whether investigation or evidence steps must be complete first, which keeps it off a 5.

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?

One front-loaded sentence with the verb and deliverable first, then a parenthetical enumerating report contents. The content list is long but each item conveys what the report contains, so little is wasted; it borders on over-enumeration.

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?

With an output schema present, return values need no explanation, and the description still characterizes the report's contents and output location well. The remaining gap is lifecycle placement — no hint about which prior investigation steps must have run — but overall it is sufficient to invoke correctly.

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% and the single parameter already carries a description pointing back to start_investigation, so the schema does the heavy lifting. The tool description adds nothing about the investigationId (format, source, or requirement), so baseline 3 applies.

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?

States a specific verb and resource ('Builds a structured JSON bug report') and names the artifact produced ('report.json in the artifacts directory'), which clearly separates it from generate_regression_test. It does not explicitly name a sibling it is not, but the deliverable is unambiguous.

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?

There is no explicit statement of when to call this (e.g., after evidence collection/analysis and before close_investigation) or when not to. Usage is only implied by the lifecycle ordering of sibling tools and by the investigationId parameter.

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