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

debugbar_get_models

Retrieve Eloquent model statistics for a Laravel request to identify loaded models and instance counts; use the results to diagnose model loading and hydration issues.

Instructions

Get Eloquent model statistics for a Laravel request — which models were loaded and how many instances.

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

Input Schema

NameRequiredDescriptionDefault
idNoRequest ID. Uses most recent if omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does say what data comes back, but it omits whether a debugbar connection or an enabled collector is required, what happens when no requests have been recorded, and whether the call is a pure read. For a tool with zero annotation coverage that is a notable gap.

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 front-loaded sentence with zero filler; the resource and the returned content are stated immediately, and nothing is repeated from the schema.

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 one-parameter read tool with no output schema and no nested structures, the description is nearly sufficient — the shape of the result (models plus instance counts) is described. Only the prerequisites and empty-state behavior are left unstated.

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?

There is a single optional parameter with 100% schema description coverage, including the default-to-most-recent behavior, so the schema already does the work. The description adds no further meaning about the request ID.

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 resource ('Get Eloquent model statistics') and adds scope ('for a Laravel request') plus what the payload contains ('which models were loaded and how many instances'). The 'models' resource is distinct from the sibling 'queries', 'views', and 'events' getters by name, though the description never explicitly contrasts them.

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: it is clearly meant for inspecting model hydration within a recorded request, which suggests debugging N+1 or memory issues, but there is no explicit statement of when to prefer this over debugbar_get_queries or debugbar_performance_summary, and no stated prerequisites.

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