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

debugbar_refresh_requests

Fetches recent PHP DebugBar requests and refreshes the local cache so AI assistants can inspect current exceptions, queries, timelines, and logs.

Instructions

Fetch the latest requests from the PHP server's debugbar storage and update the local cache.

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

Input Schema

NameRequiredDescriptionDefault
maxNoMax requests to fetch. Default: 25

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 supplied, so the description carries the full disclosure burden. It does valuable work by revealing the side effect that it updates (not just reads) the local cache, but it says nothing about connection/auth requirements, what happens if the server is unreachable, whether the cache is replaced or merged, or what the fetched data looks like.

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?

One sentence, front-loaded with the action and closed with the side effect, with zero filler. Nothing could be removed without losing meaning.

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 single-optional-parameter tool with no output schema, the essentials are present. However, the relationship to debugbar_list_requests (does this need to be called before listing, does it invalidate a prior list?) and server-availability expectations are left unaddressed, which matters for a cache-mutating call.

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%, and the single 'max' parameter already documents its default of 25 in the schema. The description adds no further semantics such as how 'max' interacts with the cache contents or whether omitted values fall back to the default, 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?

States a specific verb and resource ('fetch the latest requests from the PHP server's debugbar storage') plus the side effect of updating the local cache, which separates it from a plain listing tool like debugbar_list_requests. It does not explicitly name the sibling it differs from, so it falls 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: 'latest' and 'refresh' suggest calling this when the local cache may be stale. There is no explicit statement of when to prefer this over debugbar_list_requests, debugbar_get_request, or debugbar_start_polling, and no stated prerequisites beyond an implicit running PHP server.

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