Skip to main content
Glama
mcp-server-nuxt

mcp-server-nuxt

by rynx-cc

find_usages

Locate every file that imports or auto-imports a Nuxt component or composable, including Lazy and kebab-case usage; omit the target to list unused components and composables.

Instructions

Find every file that uses a component or composable (explicit imports, Nuxt auto-imports, Lazy prefix, kebab-case templates). Omit target to list unused components and composables. Static analysis only — no DevServer or nuxi prepare.

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

Input Schema

NameRequiredDescriptionDefault
rootNoOptional project root override (defaults to the server project path)
targetNoComponent name (UserCard), component file path, or composable name (useAuth). Omit to list unused components/composables.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.1

TDQS

A3.9/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 mostly succeeds: it declares the analysis is static-only with no DevServer or nuxi prepare, which sets expectations about speed, freshness, and why dynamic/runtime usages might be missed. It does not state the result shape (file list vs. matches with line numbers) or caveats about string-based/dynamic references.

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?

Three tight sentences with the core capability front-loaded and the query modes and static-analysis constraint following. No filler, though the parenthetical detection list is dense and could be trimmed.

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 lookup with no output schema, this covers what is being searched and the static-analysis boundary well. The remaining gap is return-value expectations and accuracy caveats for dynamic usage, which the absence of an output schema makes somewhat more important.

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 already documents both root and target, including component name, file path, composable name, and the omit case. The description repeats the omit behavior and adds nothing new about format, ambiguity resolution, or how multiple matches are ordered.

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?

States a specific verb and resource ('Find every file that uses a component or composable') and enumerates the detection channels (explicit imports, Nuxt auto-imports, Lazy prefix, kebab-case templates), which clearly separates it from generic search_code or list_components siblings.

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?

Gives one concrete usage instruction — 'Omit target to list unused components and composables' — which is a real mode, but never says when to reach for this instead of search_code, list_components, or inspect_component. The agent must infer the alternative tradeoffs.

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