Skip to main content
Glama

generate_vue_router

Generate Vue Router 4 configuration with typed routes, navigation guards, lazy loading, and meta fields

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": {
      "appName": "<appName>",
      "routes": "<routes>"
    },
    "name": "generate_vue_router"
  }
}

Input Schema

NameRequiredDescriptionDefault
routesYesComma-separated route paths (e.g. /,/dashboard,/users/:id)
appNameYesApplication name
withAuthGuardNoInclude navigation guard for auth
withLazyLoadingNoLazy load route components
withTransitionsNoInclude page transitions
withTypedRoutesNoUse unplugin-vue-router for typed routes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/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 disclosure burden. It says 'Generate' but never states whether the result is returned as a string, written to a file, or merged into existing router config, nor whether existing files are overwritten, nor whether a build step is required for typed routes (unplugin-vue-router). For a code-generation tool with zero annotation coverage, these are significant gaps.

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?

A single front-loaded sentence with no filler; the feature list is dense and every clause maps to a capability the tool advertises. Nothing needs trimming.

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?

There is no output schema and no annotations, and the description does not explain the return value or file-writing behavior, which matters for a generation tool with six parameters. It is adequate to identify the tool's purpose but not complete enough to invoke it with full confidence about the result.

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 every one of the six parameters is already documented in the input schema, which sets the baseline at 3. The description adds marginal value by naming the enabled features, but it mentions 'meta fields' for which no parameter exists, creating a slight mismatch with the actual argument surface.

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 pairs a specific verb (Generate) with a specific resource (Vue Router 4 configuration) and enumerates the artifacts produced: typed routes, navigation guards, lazy loading, meta fields. It implicitly separates itself from generate_react_router by naming the framework, but it never explicitly contrasts with that sibling or states scope boundaries.

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 when-to-use guidance, no prerequisites, and no mention of alternatives such as generate_react_router for other frameworks or generate_vue_component for other Vue artifacts. The agent must infer that this tool is for Vue Router setup only, and nothing tells it when this tool is the wrong choice.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.