Skip to main content
Glama
mcp-server-nuxt

mcp-server-nuxt

by rynx-cc

generate_composable

Creates a new Nuxt composable in the resolved composables directory, normalizes names to useXxx, and returns a typed export.

Instructions

Generate a new composable under the project composables directory (honoring srcDir) with a typed export. Names are normalized to useXxx.

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": {
      "name": "<name>"
    },
    "name": "generate_composable"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesComposable name, e.g. useCounter or counter
dryRunNoWhen true (default), return the planned file without writing
returnsNoOptional return type annotation, e.g. { count: Ref<number> }

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.1

TDQS

A3.6/5.0
Behavior3/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 it does disclose real traits: the file lands in the composables directory, srcDir is honored, and names are coerced to the useXxx convention. It does not say what happens if the composable already exists (overwrite vs. error), nor that the write path is gated behind dryRun, leaving mutation-safety behavior undocumented.

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 tight sentences, front-loaded with the action and destination, then the normalization rule. No filler and nothing repeated from the schema verbatim.

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 file-generating tool with no annotations and no output schema, the definition omits the result shape (path, generated content, or error on collision) and the overwrite policy. The dryRun behavior is only described inside the schema, so the description alone would not fully prepare an agent to call this safely.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already defines name, dryRun, and returns, establishing a baseline of 3. The description earns an extra point by stating the normalization rule (names become useXxx) and the srcDir-aware destination, which clarify the practical effect of `name` beyond the schema's example text.

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

Purpose4/5

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

The description states a specific verb and resource ("Generate a new composable") plus a precise target location (composables directory, honoring srcDir). The domain is distinct from generate_component, but it never explicitly contrasts itself with that sibling, which is the only thing keeping it from a 5.

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 only implied: an agent can infer this is for creating a composable rather than listing or inspecting one. There is no explicit when-to-use/when-not guidance and no mention of the adjacent scaffold tools (generate_component, scaffold_nitro_api) or when to prefer analyzing an existing composable instead.

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