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

debugbar_suggest_fixes

Generate prioritized, actionable PHP/Laravel code fixes for a request using its DebugBar data, with specific suggestions an AI can apply directly.

Instructions

Get a prioritized, actionable list of code fixes for a request based on its debug data. Returns specific PHP/Laravel code suggestions the AI can apply directly.

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

Input Schema

NameRequiredDescriptionDefault
idNoRequest ID. Uses most recent if omitted.
include_codeNoInclude full code examples in suggestions. Default: true

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/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 burden. It does clarify the key behavioral trait that this returns suggestions rather than applying changes ("the AI can apply directly"), which signals a non-mutating analysis. It omits whether an existing debug session is required, how expensive or slow the analysis is, and whether suggestions are deduplicated or scoped to a single request lifecycle.

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?

Two sentences, front-loaded with the outcome and followed by the return shape. Nothing is redundant and no sentence could be removed without losing information.

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 annotations and no output schema, the description needs to do more work than it does, though the shape of the return (prioritized fix list with code) is reasonably conveyed. Missing is whether the tool requires pre-existing captured debug data, whether it can be called repeatedly without side effects, and what "prioritized" means in practice.

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 both parameters are documented in the schema, including the default for include_code and the fallback behavior for id, so the description adds no parameter detail beyond it. Baseline 3 applies; the phrase "for a request" only loosely mirrors the id parameter.

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 states a specific verb and resource: get a prioritized list of code fixes for a request, derived from debug data, with PHP/Laravel suggestions. That is materially more specific than the bare name. It stops short of distinguishing itself from close siblings such as debugbar_fix_issue or debugbar_analyze_all, so the agent must infer the boundary.

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?

"based on its debug data" implies the tool should be used after debug data for a request exists, which is a useful implicit precondition. However, there is no explicit when-to-use or when-not-to-use guidance and no mention of when to prefer debugbar_fix_issue or debugbar_analyze_all over this one.

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