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

debugbar_get_cache

Retrieve cache hits, misses, writes, and deletes from a Laravel request to inspect caching behavior; filter by operation type or request ID when diagnosing issues.

Instructions

Get cache operations (hits, misses, writes, deletes) during a Laravel request.

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

Input Schema

NameRequiredDescriptionDefault
idNoRequest ID. Uses most recent if omitted.
typeNoFilter by operation type.

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?

With no annotations supplied, the description carries the full burden. It discloses the return contents (hits, misses, writes, deletes) and the read-only intent implied by 'Get', but says nothing about failure behavior when no request is captured, whether a connection is required, or that the operation list is partially enumerated (the schema also allows 'forget').

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 first and the qualifier second; every word contributes and there is no boilerplate or redundancy.

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 trivial two-optional-parameter read tool with no output schema and no annotations, the definition identifies the resource and its returned operation types, which is close to sufficient. The only real gap is prerequisite/connection context, which is minor at this complexity level.

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%, so both the id fallback ('Uses most recent if omitted') and the type enum are already fully documented in the schema. The description's operation list loosely maps to the enum but adds no syntax, format, or defaulting detail beyond structured data, making baseline 3 appropriate.

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 (get) and resource (cache operations) and enumerates the operation kinds covered, so the agent knows exactly what data comes back. It does not explicitly distinguish itself from siblings like debugbar_get_queries or debugbar_get_events, but the resource noun is distinct enough for selection.

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?

The phrase 'during a Laravel request' implies the context of use, but there is no explicit when-to-use, when-not-to-use, or statement of prerequisites such as needing an active debugbar connection or a captured request. Guidance is only inferable.

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