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

debugbar_get_queries

Fetches SQL queries from a PHP/Laravel request, including text, bindings, duration, row count, and slow-query warnings. Filter by request ID, search text, connection, or slow-only status.

Instructions

Get all SQL queries executed during a PHP/Laravel request. Shows query text, bindings, duration, row count, and slow queries warning.

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

Input Schema

NameRequiredDescriptionDefault
idNoRequest ID. Uses most recent request if omitted.
limitNoMax queries to show. Default: 50
searchNoFilter queries containing this text (case-insensitive).
slow_onlyNoShow only slow queries (>200ms). Default: false
connectionNoFilter by database connection name.

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 must carry the behavioral burden; 'Get' implies a read-only operation and the second sentence usefully discloses what comes back, including a slow-query warning. It omits prerequisites an agent likely needs, such as whether a debugbar connection or captured request must exist, and says nothing about result limits or truncation.

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 the core action, with no filler. The second sentence is a compact field list that earns its place by substituting for a missing output schema, though it reads as a comma list rather than structured information.

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 5-parameter read tool with no annotations and no output schema, the description covers what is returned but leaves prerequisites (debugbar connection, request availability) and default paging behavior unaddressed. It is adequate to invoke the tool, but not complete for an agent operating in a large sibling set.

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%, so all five parameters (id, limit, search, slow_only, connection) are already documented with defaults and semantics in the schema. The description adds no further parameter meaning such as how filters combine or whether search applies to bindings as well as query text.

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 SQL queries executed during a PHP/Laravel request') and enumerates the returned fields, so an agent knows exactly what it retrieves. It does not name or differentiate from close siblings such as debugbar_get_duplicate_queries or debugbar_compare_queries, which keeps it short of a 5.

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 'during a PHP/Laravel request' and the mention of slow-query warnings, which hints at performance debugging. There is no explicit when-to-use, when-not-to-use, or pointer to alternative query tools when the agent wants duplication or comparison analysis.

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