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

debugbar_get_events

Retrieve Laravel events fired during a request, including listeners and dispatch locations, to trace event flow and diagnose issues; filter by request ID or search text.

Instructions

Get all Laravel events fired during a request with listener details and dispatch location.

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

Input Schema

NameRequiredDescriptionDefault
idNoRequest ID. Uses most recent if omitted.
searchNoFilter events containing this text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations exist, so the description carries the full disclosure burden. 'Get' implies a read-only operation and the text usefully reveals the payload contents (listeners and dispatch location), but it says nothing about requiring an active debugbar connection, what happens when no events were fired, or any limits on the result set.

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?

A single front-loaded sentence with no filler. Every clause (events, listener details, dispatch location) tells the agent something about the output.

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?

For a simple two-optional-parameter read tool with no output schema, the description is adequate but thin: it omits how a request ID is obtained (presumably from debugbar_list_requests) and the connection prerequisite. An agent could call it correctly by relying on the schema defaults, but not confidently.

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 schema already documents both 'id' (defaults to most recent) and 'search' (text filter). The description adds no further meaning about either parameter, 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?

States a specific verb and resource ('Get all Laravel events fired during a request') and adds what the result contains (listener details, dispatch location). The event resource is clearly distinct from data-oriented siblings like debugbar_get_queries or debugbar_get_views, though no sibling is named explicitly.

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?

The description never says when to reach for this tool versus alternatives such as debugbar_get_timeline or debugbar_analyze_all, nor does it state prerequisites (e.g. that a request must already be captured/connected). Usage is only inferable from the resource name.

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