Skip to main content
Glama
mcp-php-debugbar
by movinginfo

debugbar_auto_debug

Fetches the latest or specified request, loads full DebugBar data, and reads implicated PHP source files to return a complete report of every issue with exact code location and concrete fix.

Instructions

ONE-SHOT DEBUGGING TOOL. Fetches the latest request (or specified URL), loads full DebugBar data, runs analysis, reads ALL implicated PHP source files, and returns a complete developer report: every issue with exact code location, code context, and concrete fix. This is what you call to debug a PHP app — no manual steps needed.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "debugbar_auto_debug"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoUse this specific request ID instead of the latest.
allNoAnalyze ALL cached requests and produce a full project health report. Default: false
urlNoFetch this URL path first (e.g. /users or /api/products). If omitted, uses the latest captured request.
refreshNoRefresh request list from server before analyzing. Default: true

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/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 well: it discloses the multi-step side effects (fetching the latest request, refreshing, reading ALL implicated source files) and the shape of the return (per-issue location, context, fix). It stops short of stating prerequisites such as whether a connection must already be established or how expensive/long the source-file scan is.

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?

Front-loaded with a capitalized one-shot framing, followed by a single pipeline sentence and a single routing sentence. Three sentences, no repetition, and the most decision-relevant information comes first.

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 4-optional-parameter, no-output-schema tool, the description supplies the missing return-value picture and the multi-step behavior an agent needs to anticipate latency and side effects. It could add whether an active connection/app is required, but otherwise 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%, so the schema already documents id, all, url, and refresh, including defaults. The description only lightly echoes them ('latest request (or specified URL)', 'reads ALL implicated PHP source files') without adding format or precedence details beyond the schema, so the baseline 3 applies.

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 names a specific composite action (fetch request, load DebugBar data, run analysis, read implicated PHP source files) and states its output (a developer report with issue, code location, context, and fix). The line 'This is what you call to debug a PHP app — no manual steps needed' distinguishes it from the granular sibling tools like debugbar_get_queries or debugbar_read_source.

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?

It gives a clear selection rule: call this to debug a PHP app with no manual steps, implying the siblings are the manual alternative. It does not explicitly say when NOT to use it or name a specific alternative (e.g. debugbar_auto_analyze vs this), so the routing is strong but not exhaustive.

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