Skip to main content
Glama

generate_code_splitting

Generate code splitting configuration with manual chunks, dynamic imports, and prefetch strategy

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": {
      "bundler": "<bundler>",
      "strategy": "<strategy>"
    },
    "name": "generate_code_splitting"
  }
}

Input Schema

NameRequiredDescriptionDefault
chunksNoManual chunk names
bundlerYesBundler
strategyYesSplitting strategy

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 disclosure burden, and it says nothing about whether a file is written to disk, whether output is a snippet or a full config, whether it overwrites existing config, or whether it validates the chosen bundler/strategy combination. 'Generate' implies a creation operation but the mutation/read-only profile remains unstated.

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 well-formed sentence with the core output front-loaded and no filler. It is appropriately sized, though it is a bare noun-phrase enumeration with no structural layering to explain behavior.

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 three-parameter generator with full schema coverage and no output schema, an agent can call it, but the description leaves open what the returned configuration actually contains and how the three features interrelate. Adequate as a minimum-viable definition, not complete.

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% with two enums, so the schema already documents bundler, strategy, and chunks. The description's mention of 'manual chunks' and 'prefetch strategy' loosely maps to those parameters but adds no format, default, or interaction details (e.g., how chunks relates to strategy) beyond 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?

The description gives a specific verb ('Generate') and resource ('code splitting configuration') and enumerates the artifacts involved: manual chunks, dynamic imports, prefetch strategy. It is clearly a bundler-configuration generator, distinguishable in intent from other generate_* siblings, though it never names an alternative or scopes itself explicitly.

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 indication of when to reach for this tool versus other generators, no prerequisites (e.g., does the project already need a bundler config?), and no exclusions. The agent must infer usage entirely from the name and the required 'bundler'/'strategy' params.

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.