Skip to main content
Glama
mcp-server-nuxt

mcp-server-nuxt

by rynx-cc

explain_render_mode

Explains how Nitro resolves the render mode for a concrete URL using nuxt.config and nitro routeRules, covering ssr, spa, prerender, isr, swr, static, cache, redirect, cors, headers and proxy via static analysis.

Instructions

Explain how Nitro resolves the render mode for a concrete URL from nuxt.config routeRules / nitro.routeRules (ssr, spa, prerender, isr, swr, static) plus cache, redirect, cors, headers and proxy. 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_render_mode"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.1

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden and discloses the key behavior: it is static analysis only and does not start a DevServer or run nuxi prepare. It also states the config sources it reads, though it does not describe output format or error behavior.

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?

The description is front-loaded with the core action and scope, then adds the precise config sources and the static-analysis constraint. It is dense but every clause contributes useful selection or invocation information.

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 output schema and no annotations, the description covers purpose, inputs, config sources, and the key runtime limitation. The main minor gap is that it does not describe the return shape of the explanation.

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%, so the schema already documents both parameters thoroughly, including route examples. The description reinforces that the route must be concrete but adds little parameter meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('Explain') and a precise resource ('how Nitro resolves the render mode for a concrete URL from routeRules'), and enumerates the render modes it covers. This clearly distinguishes it from broader route/config tools like explain_route or read_config.

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

Usage Guidelines4/5

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

It gives clear usage context: a concrete URL path, config-based routeRules, and static analysis only with no DevServer or nuxi prepare. It does not explicitly name alternative tools for related-but-different questions, but the scoping is strong enough for correct selection.

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