Skip to main content
Glama
mcp-server-nuxt

mcp-server-nuxt

by rynx-cc

find_api_callers

Find Nuxt pages, components, composables, layouts, plugins, middleware, and utils that call server API routes via useFetch, useLazyFetch, $fetch, or useAsyncData. Accepts a handler path or URL.

Instructions

Find every page/component/composable/layout/plugin/middleware/util that calls a server API route via useFetch, useLazyFetch, $fetch, or useAsyncData($fetch). Accepts a handler file path (server/api/users/[id].get.ts) or a concrete URL (/api/users/42). 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": {
      "target": "<target>"
    },
    "name": "find_api_callers"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootNoOptional project root override (defaults to the server project path)
targetYesServer API route target: a handler file path or a concrete URL, e.g. server/api/users/[id].get.ts or /api/users/42

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.1

TDQS

A3.7/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 burden. It does disclose two genuinely useful behavioral facts: that only useFetch/useLazyFetch/$fetch/useAsyncData($fetch) are matched (implying blind spots for other consumption patterns), and that it runs statically without a DevServer or nuxi prepare. It says nothing about result shape, ordering, empty results, or cost of a whole-project scan, which for a no-annotation tool is a meaningful gap.

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?

Two sentences, zero filler: the search surface is front-loaded, then the accepted input formats, then the execution constraint. The long enumeration is doing real work by defining exactly what the static analysis matches, so it earns its length.

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

Completeness3/5

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

For a 2-parameter, no-annotation, no-output-schema tool, the description is adequate on inputs and execution model but leaves the return value entirely undefined — an agent cannot tell whether it gets file paths, line numbers, or usage snippets. That is the one piece of information the description, not the schema, would have had to supply.

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 the baseline is 3. The description reinforces the target parameter with concrete examples of both the handler-file and concrete-URL forms, but adds no new semantics (e.g. how an interpolated URL resolves to a dynamic segment) and never mentions the optional root override.

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 (find) and a precisely bounded resource (callers of a server API route), and enumerates the caller kinds (pages, components, composables, layouts, plugins, middleware, utils) plus the exact fetch mechanisms it recognizes. The scope is narrow enough that an agent can distinguish it from generic siblings like find_usages or search_code without inspecting either 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 is implied rather than stated: the two accepted target formats show how to call it, and the static-analysis note sets an execution expectation. However, there is no explicit when-to-use guidance, no statement of when this is the wrong choice, and no named alternative among the many siblings (find_usages, explain_data_fetching, search_code) that could also answer 'who calls this'.

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