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

debugbar_auto_analyze

Analyze captured PHP DebugBar requests to detect N+1 queries, slow queries, exceptions, memory, and performance issues. Get a health score and concrete fix suggestions.

Instructions

Deeply analyze a captured request with the smart issue detection engine. Returns a health score, detected issues (N+1 queries, slow queries, exceptions, memory, performance), and concrete fix suggestions for each issue.

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_analyze"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoRequest ID to analyze. Uses most recent request if omitted.
slow_query_msNoThreshold for slow query detection in ms. Default: 200
slow_request_msNoThreshold for slow request detection in ms. Default: 500

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does well on the output side by naming the health score, issue categories, and per-issue fix suggestions, but it says nothing about cost/latency, whether it is read-only, or whether it requires an active connection to the debugger.

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?

Two sentences with zero filler, and the core action is front-loaded before the return-value detail. Slightly dense parenthetical list of issue types, but every element is informative.

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?

With no output schema, the description correctly takes on the job of describing the return shape, which is its strongest contribution. However, for a tool sitting among many similarly named analysis siblings and with no annotations, it should clarify prerequisites and positioning; that leaves it adequate rather than 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 description coverage is 100%: the id default ('most recent request') and both slow-query/slow-request thresholds are fully documented in the schema. The description does not restate or extend parameter meaning, so the 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?

Names a specific verb and resource ('deeply analyze a captured request') and enumerates what the analysis surfaces (N+1 queries, slow queries, exceptions, memory, performance), which is far more concrete than a tautology. It does not distinguish itself from siblings such as debugbar_analyze_all or debugbar_auto_debug, so a 4 rather than a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to reach for this tool rather than the sibling analyzers, and no prerequisites (e.g., that a request must already be captured). 'Deeply' hints at a heavier, more thorough pass, but the agent is left to infer that from the adverb alone.

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