Skip to main content
Glama
gapra

@gapra/nuxt-migration-mcp

by gapra

generate_api

Generate API functions with async/await pattern in a Nuxt 4 codebase. Define name, path, and HTTP methods to create server endpoints.

Instructions

Generate API functions in the target Nuxt 4 codebase. Creates a new API file with async/await pattern.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesName of the API (e.g., 'user', 'products')
relativePathYesRelative path in target (e.g., 'api/users.ts')
moduleNoOptional module name to prefix path (e.g., 'deals', 'tickets')
targetPathNoOptional absolute target path override
methodsNoHTTP methods to generate (get, post, put, delete)
Behavior2/5

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

With no annotations, the description carries full burden. It only states creation of a new API file with async/await pattern, but does not disclose whether it overwrites existing files, required permissions, or any side effects.

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, front-loaded with key action, no wasted words. Highly efficient.

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?

Despite no output schema, the description lacks details on expected output (e.g., file path, success response) and behavioral boundaries. For a generation tool, this is insufficient for an agent to fully understand consequences.

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%, so the description adds nothing beyond what the schema already describes for parameters. The description does not provide additional context or constraints.

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 clearly states it generates API functions in a Nuxt 4 codebase, which is specific and distinguishable from sibling tools like generate_composable or generate_component. The verb 'Generate' and resource 'API functions' are precise.

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?

No guidance is provided on when to use this tool versus alternatives (e.g., generate_from_audit, write_file). There are no exclusions or context for selection.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gapra/gp-nuxt-migration-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server