Skip to main content
Glama
mcp-server-nuxt

mcp-server-nuxt

by rynx-cc

explain_injections

Trace Nuxt plugin injections to find where useNuxtApp().$name values are provided, list referencing files, and report resolution status and unresolved third-party names.

Instructions

Trace Nuxt plugin injections: find where useNuxtApp().$name values are provided (returned provide objects or nuxtApp.provide calls, including .client/.server plugins), list every file that references them, and report resolution status, multiple providers, unresolved third-party names, limitations and skipped/unreadable files. Static analysis only — no DevServer or nuxi prepare, and no automatic fixes.

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": "explain_injections"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootNoOptional project root override (defaults to the server project path)
injectionNoOptional injection name filter, e.g. api or $api (normalized internally).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.1

TDQS

A4.2/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full behavioral burden and does so well: it discloses the analysis method (static only, no DevServer or nuxi prepare), the absence of side effects ('no automatic fixes'), and what the report contains, including negative findings like unresolved third-party names, multiple providers, limitations, and skipped/unreadable files. An agent knows both the operation's scope and its known blind spots before calling.

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?

The definition is front-loaded with the core action and follows with a compact constraint sentence; no filler or restatement of the title. The main sentence is long and list-dense, but each clause conveys distinct scope information rather than padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-optional-parameter, annotation-free tool with no output schema, the description is complete: it describes the shape of the result (providers, references, resolution status, limitations, skipped files) in prose, so the missing output schema does not leave the agent guessing. The only uncovered detail is result formatting, which is minor here.

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 optional parameters (root, injection) are already documented in the schema, which sets the baseline at 3. The description adds only light context by showing the '$name' form and noting .client/.server plugin variants, without adding syntax or matching rules beyond what the schema states.

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 opens with a specific verb and resource ('Trace Nuxt plugin injections') and enumerates the concrete outputs: provider locations (provide objects, nuxtApp.provide calls, .client/.server plugins), referencing files, and resolution status. This clearly separates it from generic siblings such as find_usages or explain_data_fetching without needing to open the schema.

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 context is implied rather than stated: it is clearly a static-analysis/diagnostic tool for plugin injections, and the 'Static analysis only — no DevServer or nuxi prepare' clause tells the agent what it will not do. However, there is no explicit when-to-use framing and no routing to alternatives (e.g., when to prefer find_usages or explain_data_fetching instead).

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