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

debugbar_compare_queries

Compare SQL query counts and total time between two captured requests to measure optimization impact.

Instructions

Compare SQL query counts and total time between two captured requests to measure optimization impact.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id1": "<id1>",
      "id2": "<id2>"
    },
    "name": "debugbar_compare_queries"
  }
}

Input Schema

NameRequiredDescriptionDefault
id1YesFirst request ID (e.g. before optimization)
id2YesSecond request ID (e.g. after optimization)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does convey that the operation is a non-mutating comparison over two existing requests. However, it says nothing about what happens if an ID is invalid or from a different session, and it gives no hint about the shape of the comparison result.

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 the resource, the comparison target, and the purpose in order of importance; no filler.

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 two-parameter comparison tool with no annotations and no output schema, the description is sufficient to invoke it but leaves the result format ambiguous – an agent cannot tell whether it returns raw counts, deltas, or percentages.

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 schema itself already labels the parameters as 'before optimization' and 'after optimization'. The description adds no ordering, ID-format, or validation detail beyond that, so the baseline of 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?

The description names a specific verb and scope: comparing SQL query counts and total time between two captured requests. It clearly distinguishes the tool from siblings that fetch a single request's data or aggregate performance, though it does not name an alternative explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

The clause 'to measure optimization impact' supplies a clear use context, and the schema's before/after examples reinforce the intended workflow. It stops short of exclusions or naming which sibling to use when only one side of the comparison is available.

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