Skip to main content
Glama
mcp-server-nuxt

mcp-server-nuxt

by rynx-cc

explain_route

Resolve a concrete Nuxt URL through static analysis to show matched page, dynamic params, nested parents, layout, middleware order, data-fetching calls, and mapped API handlers.

Instructions

Explain how Nuxt resolves a concrete URL (e.g. /users/42): matched page, dynamic params, nested parents, layout, middleware order, data-fetching calls, and mapped /api server handlers. Static analysis only — no DevServer or nuxi prepare.

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": {
      "route": "<route>"
    },
    "name": "explain_route"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootNoOptional project root override (defaults to the server project path)
routeYesConcrete URL path to explain, e.g. /users/42 or /blog/hello/world

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.1

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose a meaningful trait: static analysis only, no DevServer or nuxi prepare required, so the agent knows the tool works without a running dev server; it also names the artifacts returned despite there being no output schema. It remains silent on failure behavior (unmatched URL, unknown root) and on whether the call is strictly read-only.

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 opens with the core action and example URL, then lists the outputs; the closing constraint sentence is short and high-value. No filler, no restatement of the tool name.

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 two-parameter read-only analysis tool with no annotations and no output schema, the description compensates well by enumerating exactly what is returned and by defining the static-analysis execution model. The remaining gap is edge-case behavior on unmatched routes or a bad root path, which an agent would need to know before relying on the result.

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% for both parameters, so the baseline is 3. The description reinforces that route must be a concrete URL rather than a pattern, matching the schema wording, and says nothing additional about the root override beyond what the schema already states.

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?

It names a specific verb (explain) and a precise resource (resolution of a concrete URL), then enumerates the artifacts produced: matched page, dynamic params, nested parents, layout, middleware order, data-fetching calls, and mapped /api handlers. That enumeration implicitly separates it from explain_middleware, explain_data_fetching, and get_route, though no sibling is named explicitly, which keeps it just below 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?

The concrete-URL framing (e.g. /users/42) plus the static-analysis constraint imply when this is the right tool: you have a real path and want the full resolution chain. However, there is no explicit statement of when to prefer explain_middleware or get_route instead, and no note about what happens if the URL matches no route.

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