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

debugbar_get_route

Retrieves Laravel route information (URI, action, middleware, name, constraints) for a DebugBar request, using the latest request if no ID is provided.

Instructions

Get Laravel route information for a request: URI, action, middleware, route name, and constraints.

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

Input Schema

NameRequiredDescriptionDefault
idNoRequest ID. Uses most recent if omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/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 not state what happens if the request has no matched route (e.g., console commands or 404s), whether the call errors or returns empty, or that read-only access to stored debug data is involved. Only a field list is given.

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?

A single front-loaded sentence with no filler; the enumerated return fields are informative rather than padding. Slightly list-like, but nothing could be cut without losing 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 simple one-parameter read tool this is close to adequate, and the field enumeration substitutes for the absent output schema. However, with no annotations and no description of edge-case behavior (no matching route, stale/cleared request data), an agent cannot predict failure modes.

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 single 'id' parameter is fully documented in the schema, including the 'uses most recent if omitted' default. The description adds nothing about the parameter, 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?

Names a specific verb and resource ('Get Laravel route information for a request') and enumerates the returned fields (URI, action, middleware, route name, constraints). This is clearly distinct from data-oriented siblings like debugbar_get_request or debugbar_get_queries, though it doesn't explicitly say so.

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

Usage Guidelines2/5

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

There is no when-to-use guidance: nothing about when route inspection is preferable to debugbar_get_request, no prerequisites, and no exclusions. The only contextual cue is the phrase 'for a request,' leaving the agent to infer the scenario.

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