Skip to main content
Glama

generate_vite_config

Generate a production-ready Vite configuration with plugins, path aliases, proxy, env variables, and SSR support

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": {
      "projectName": "<projectName>",
      "framework": "<framework>"
    },
    "name": "generate_vite_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
withPwaNoInclude vite-plugin-pwa
withSsrNoInclude SSR build configuration
frameworkYesFrontend framework
withProxyNoInclude dev server proxy for API
projectNameYesProject name
apiProxyTargetNoAPI proxy target URL (e.g. http://localhost:3000)
withPathAliasesNoInclude @ path alias
withVitestConfigNoInclude Vitest test configuration

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

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 burden. 'Production-ready' hints at defaults, but it never says whether the tool writes a file or returns config text, where output goes, whether existing files are overwritten, or what happens when optional flags are false. This is a significant gap for a generator with no annotation coverage.

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?

One front-loaded sentence with no filler; the feature list is scannable. The only weak element is 'env variables', which is not backed by any parameter and so does not fully earn its place.

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?

With 8 parameters, no output schema, and no annotations, the description should say more about return shape and how flags interact (for example, apiProxyTarget without withProxy). It covers the feature surface adequately but leaves the call contract partly implicit.

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 the baseline is 3. The description echoes several parameters (plugins, path aliases, proxy, SSR) but adds no syntax or interaction detail, and it mentions 'env variables' even though no env-related parameter exists in the schema.

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 ... Vite configuration') and enumerates the feature set (plugins, path aliases, proxy, env variables, SSR). It does not distinguish itself from the many generate_*_config siblings, but the domain is unambiguous.

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_vitest_config or generate_coverage_config, which a sibling list makes plausible. The agent must infer usage from the name alone.

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.