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

debugbar_get_timeline

Retrieve a PHP/Laravel request's performance timeline to inspect measured code blocks, durations, and relative start times for diagnosing slow execution.

Instructions

Get the performance timeline for a PHP/Laravel request. Shows measured code blocks, their duration, and relative start times.

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

Input Schema

NameRequiredDescriptionDefault
idNoRequest ID. Uses most recent if omitted.
min_duration_msNoOnly show measures taking longer than this (ms). Default: 0

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/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 disclose the shape of what comes back (code blocks with duration and relative start offsets), which is genuinely useful, but it omits what happens when no request data exists, whether a connection to the debugbar is required, and whether the default 'most recent request' can silently return a different request than the user expects.

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 purpose and followed by the return content. Nothing is redundant and nothing is padding; every clause carries information.

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 two-optional-parameter read tool with no output schema and no annotations, the description covers purpose and result shape adequately. The remaining gap is that it doesn't situate the tool among its many debugbar siblings or note any connection/state prerequisite, which matters in a catalog of 30+ similarly named tools.

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%: 'id' is documented as the request ID defaulting to most recent, and 'min_duration_ms' as a duration threshold defaulting to 0. The description adds no additional parameter meaning, so the baseline 3 applies — the schema is doing all the work.

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?

Specific verb and resource: 'Get the performance timeline for a PHP/Laravel request', followed by what the result contains (measured code blocks, duration, relative start times). It does not name or contrast with the plausible sibling 'debugbar_performance_summary', so the boundary between timeline detail and summary is left to the agent.

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 by the phrase 'for a PHP/Laravel request' — an agent infers this is the per-request profiling view. There is no explicit when-to-use guidance, no mention of choosing between this and debugbar_performance_summary, debugbar_get_request, or debugbar_get_queries, and no statement of prerequisites such as an active debugbar connection.

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