Skip to main content
Glama

generate_react_router

Generate React Router v6 configuration with nested routes, lazy loading, guards, and data loaders

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

Input Schema

NameRequiredDescriptionDefault
routesYesComma-separated route paths (e.g. /,/dashboard,/users/:id)
appNameYesApplication name
withLoadersNoInclude createBrowserRouter data loaders
withAuthGuardNoInclude authentication route guard
withLazyLoadingNoLazy load route components
withErrorBoundaryNoInclude error boundary per route

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior2/5

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

No annotations and no output schema, so the description carries the full burden. It never says what is produced (a code string, a file written to disk, or a diff), whether existing files are overwritten, or that v6-specific APIs are used beyond the version tag — all material for a generator tool.

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 the verb and resource first and the feature set as a compact qualifier. Nothing is redundant or padded.

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 6-parameter generator with full schema coverage this is adequate, but with no output schema the description should still state the return form (generated code text vs. written files) and any assumptions about project layout. Those gaps matter for correct invocation.

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 parameter is already documented in the schema, including the comma-separated route format example. The description adds no meaning beyond the feature list that loosely mirrors the optional flags, meeting only the baseline.

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+resource: 'Generate React Router v6 configuration', then enumerates the generated artifacts (nested routes, lazy loading, guards, data loaders). This clearly separates it from generate_vue_router by framework, though no sibling is named explicitly.

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 by the framework name and feature list, but there is no explicit when-to-use/when-not guidance and no named alternative such as generate_vue_router for Vue projects. An agent must infer the selection criteria.

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.