Skip to main content
Glama
mcp-server-nuxt

mcp-server-nuxt

by rynx-cc

explain_data_fetching

Inspect Nuxt pages, components, or URLs to list data-fetching calls with URL/key, method, and options, then flag duplicate keys and risky fetching patterns for static review.

Instructions

List useFetch / useLazyFetch / useAsyncData / useLazyAsyncData / $fetch calls with URL or key, method and detected options, and flag duplicate keys, $fetch in onMounted, bare await $fetch at setup top level, server: false without lazy, and lazy results rendered without pending/status. Accepts a page/component file or a URL resolved like explain_route. 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": "explain_data_fetching"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoOptional page/component file (or directory) or a concrete URL like /users/42. Omit to scan all pages, components, layouts and composables.
rootNoOptional project root override (defaults to the server project path)

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?

No annotations are supplied, so the description carries the full load, and it does disclose meaningful behavior: analysis is purely static with no DevServer or nuxi prepare, and it explains what the tool detects. It falls short of stating the response shape (diagnostic list vs. grouped report), whether issues are auto-fixed, or how it behaves on a non-Nuxt project.

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?

Front-loaded with the primary resource list before the detection rules, and the closing sentence about static-only analysis is well placed. The first sentence is an overlong run-on with a heavy slash-and-comma enumeration, which costs readability, but nearly every clause carries real 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?

With no output schema and no annotations, the description has to define both scope and results, and it explains what is listed and what is flagged well enough to call the tool confidently. The main omission is return structure and severity/formatting of the flags, which an agent would still have to discover by calling it.

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 parameters are already documented. The description reinforces path semantics by describing the URL case as 'resolved like explain_route' and by implying the default scope covers pages, components, layouts and composables, but adds no format or syntax detail beyond the schema, which sets the baseline at 3.

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 names the exact APIs it inventories (useFetch, useLazyFetch, useAsyncData, useLazyAsyncData, $fetch) and the fields it reports (URL/key, method, detected options), then enumerates the specific problems it flags (duplicate keys, $fetch in onMounted, bare top-level await, server:false without lazy, lazy results without pending/status). That is specific enough to separate it from generic search_code or inspect_component without opening 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?

It states inputs ('Accepts a page/component file or a URL resolved like explain_route') and a hard constraint ('Static analysis only — no DevServer or nuxi prepare'), which implicitly rules out runtime verification. However it never names an alternative sibling (e.g. check_ssr_safety, search_code) or says when a different tool would be the better pick, so the guidance stays implied.

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