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

debugbar_connect

Connect to a running PHP/Laravel dev server to fetch DebugBar data and optionally monitor Chrome for automatic request capture.

Instructions

Connect to a running PHP/Laravel development server and optionally start monitoring Chrome browser for automatic debugbar data capture.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "base_url": "<base_url>"
    },
    "name": "debugbar_connect"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoProject type. Default: auto-detect
base_urlYesBase URL of the PHP/Laravel dev server, e.g. http://localhost:8000
chrome_hostNoChrome remote debugging host. Default: localhost
chrome_portNoChrome remote debugging port. Start Chrome with: --remote-debugging-port=9222. Enables automatic request capture.
load_recentNoFetch recent requests from the server after connecting. Default: true
open_handler_pathNoPath to debugbar open handler. Default: /_debugbar/open (Laravel) or /debugbar/open.php (vanilla PHP)

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 must carry the behavioral load. It discloses two concrete behaviors — establishing a server connection and optionally launching Chrome monitoring for automatic capture — which is useful, but it omits whether the connection persists as session state, what happens if already connected, and whether Chrome must already be running.

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?

A single front-loaded sentence covering both the primary connection action and its optional extension, with no wasted wording. It could have used a second short sentence for prerequisite or return behavior without hurting efficiency, so 4 rather than 5.

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 six-parameter connection tool with full schema coverage and no output schema, the description conveys the essential scope and optional browser monitoring. The remaining gap — persistence of connection state and expected outcome — is modest, so completeness is good but not airtight.

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 every parameter including base_url, chrome_port, and the type enum is already documented in the schema. The description adds no format, default, or interaction details beyond what the schema provides, making the baseline 3 correct.

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 names a specific verb ('Connect') and resource ('a running PHP/Laravel development server'), plus the optional Chrome monitoring side behavior. It is clear on its own but does not differentiate from close siblings such as debugbar_start_chrome_monitor or debugbar_disconnect, leaving the agent to infer boundaries.

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 explicit when-to-use or when-not-to-use guidance. The word 'optionally' hints that the Chrome monitoring is conditional, but the description never says which tool to call instead for monitoring alone, nor whether connecting is a prerequisite for the other debugbar tools.

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