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

debugbar_open_preview

Get exact commands to open a PHP DebugBar-integrated browser preview in Cursor IDE or Chrome, including steps to enable automatic debug data capture.

Instructions

Get the exact commands and steps to open a browser preview with PHP DebugBar integration in Cursor IDE or Chrome. Shows how to enable automatic debug data capture.

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

Input Schema

NameRequiredDescriptionDefault
urlNoURL to open. Default: uses connected server URL
modeNoPreview mode. Default: all (shows all options)
cdp_portNoChrome DevTools Protocol port. Default: 9222

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/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 behavioral burden. It does add a useful distinction by framing the output as 'commands and steps' plus 'how to enable automatic debug data capture,' implying this returns guidance text rather than launching a browser. It does not state prerequisites, whether any process is started, or what the response actually looks like.

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 short sentences, front-loaded with the core action and free of padding. The trailing sentence about automatic debug data capture is slightly vague but still adds intent context.

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 must convey everything about behavior and return shape, and it only partially does. It never explains how the 'mode' enum values (cursor-simple-browser, chrome-cdp, edge-cdp, all) change the returned instructions, which is the main variable an agent must reason about.

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%, and the schema already documents url, mode, and cdp_port with defaults and an enum. The description adds no meaning beyond that, so the baseline of 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?

The description gives a specific verb and resource: retrieving the exact commands and steps to open a browser preview with PHP DebugBar integration in Cursor IDE or Chrome. An agent can tell this is an instruction-retrieval tool rather than an action tool. It does not, however, differentiate itself from siblings such as debugbar_preview_modes or debugbar_start_chrome_monitor.

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?

Usage is only implied: an agent can infer it should call this when it needs setup instructions for a browser preview. There is no explicit when-to-use, no when-not-to-use, and no named alternative such as debugbar_preview_modes for just listing modes.

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