Skip to main content
Glama
mcp-server-nuxt

mcp-server-nuxt

by rynx-cc

generate_component

Scaffold a new Vue SFC under components/ with typed defineProps/defineEmits and slots, and preview planned output with dry run before writing.

Instructions

Generate a new Vue SFC under components/ with typed defineProps/defineEmits and slots.

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_component"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesComponent name, e.g. BaseButton or ui/BaseButton
emitsNoEvent names to declare with defineEmits
propsNoProp name -> type, e.g. { "label": "string", "count": "number" }
slotsNoSlot names (default slot is always included)
dryRunNoWhen true (default), return the planned file without writing

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it never says the tool writes to disk, what happens if the component already exists, whether it overwrites, or what it returns. The critical fact that dryRun defaults to true — meaning the call is a no-op unless explicitly disabled — appears only in the schema, not the description.

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?

A single front-loaded sentence with no filler; the resource path and output shape come first. It is efficient, though the brevity comes at the cost of omitting the write/dry-run semantics.

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

Completeness2/5

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

This is a filesystem-mutating tool with five parameters (including a nested object), no annotations, and no output schema, so the description is the only place side effects could be disclosed. Overwrite behavior, the default-dry-run workflow, and the return value are all absent, leaving the agent under-informed before a write.

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 each parameter has a descriptive example, so the schema does the heavy lifting. The description reinforces the intent of props/emits/slots by naming defineProps/defineEmits but adds no naming conventions, collision rules, or interaction between parameters.

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?

States a specific verb and resource ("Generate a new Vue SFC under components/") plus the generated content (typed defineProps/defineEmits and slots), which clearly separates it from read-only siblings like inspect_component and list_components. It does not name or contrast a sibling explicitly, so it stops short of 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 Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this versus inspect_component or list_components, no mention that a dry run precedes a write, and no prerequisites such as whether the directory must exist. The agent must infer the workflow entirely.

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