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

debugbar_performance_summary

Summarize captured PHP DebugBar request performance by total time, query count, and memory to spot slow pages; limit results and sort by duration, queries, memory, or date.

Instructions

Show a performance summary across all captured requests — total time, query count, memory. Useful for spotting slow pages.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax requests to show. Default: 20
sort_byNoSort field. Default: duration

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full disclosure burden. It does convey that the operation aggregates across all captured requests (a read-style, non-destructive scope) and names the metrics returned, but it omits that results are truncated by a default limit of 20, that sorting is configurable, and any note on permissions or data freshness.

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 front-loaded sentences with no wasted clauses; the core capability comes first and the use case second. The trailing phrase about spotting slow pages is mildly promotional but still short and on-topic.

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 simple two-parameter read tool with no output schema, the description is largely sufficient: it names the metrics an agent will receive and frames the tool's purpose. The remaining gap is that it never warns results are capped at the default limit of 20, which matters for interpreting a 'summary across all requests'.

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%, with both 'limit' and 'sort_by' documented including defaults and the enum of sort fields, so the schema does the heavy lifting. The description adds no additional meaning about what sorting by duration versus queries implies for interpretation.

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 ('Show a performance summary across all captured requests') and enumerates the metrics produced: total time, query count, memory. An agent can distinguish this aggregate view from per-request or per-query siblings like debugbar_get_queries and debugbar_list_requests, 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Useful for spotting slow pages' implies the use case but is soft guidance rather than an explicit when-to-use rule. It never says when to prefer this aggregate summary over debugbar_list_requests or debugbar_get_queries, nor does it state any preconditions such as requiring captured data first.

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