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

debugbar_webhook_start

Starts a local webhook server to receive PHP DebugBar IDs from an injected JavaScript snippet, returning the JS and PHP code needed for zero-configuration capture.

Instructions

Start a local webhook server that receives PHP DebugBar IDs sent from an injected JavaScript snippet. Returns the JS snippet and PHP snippet to add to your project for zero-configuration 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_webhook_start"
  }
}

Input Schema

NameRequiredDescriptionDefault
portNoWebhook server port. Default: 9223

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?

With no annotations, the description carries the full burden and does disclose the useful behavioral fact that the tool returns JS and PHP snippets rather than data. However, it omits lifecycle behavior for a long-running server: whether it blocks, runs in the background, survives the tool call, how to stop it, and what happens on port conflicts.

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, front-loaded with what is started and what is returned; nothing is redundant. 'For zero-configuration capture' is mildly promotional but conveys intent, so it narrowly earns its place.

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?

There is no output schema, and the description compensates by stating the return payload (JS and PHP snippets). For a server-starting tool it is still incomplete on lifecycle and shutdown, which is the main thing an agent needs to know before invoking a long-lived process.

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 the sole parameter (port) already documents type and default 9223, so the baseline of 3 applies. The description adds no meaning about the port beyond the schema, though it also doesn't need to.

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?

States a specific verb and resource: start a local webhook server that receives PHP DebugBar IDs from an injected JS snippet. The mechanism (webhook) implicitly distinguishes it from sibling starters like debugbar_start_polling and debugbar_start_chrome_monitor, but it never names them, so differentiation requires the agent to already know what those do.

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: the phrase 'zero-configuration capture' and the returned JS/PHP snippets suggest this is the setup path for webhook-based collection. There is no explicit when-to-use versus polling or Chrome-monitor capture, and no when-not guidance or prerequisites (e.g., a PHP app already instrumented with DebugBar).

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