Skip to main content
Glama
advancedcommunities

Salesforce MCP Server

generate_component

Destructive

Scaffold Salesforce Lightning Web Components or Aura bundles with selectable templates and output directories.

Instructions

Generate Lightning Web Components (LWC) or Aura components with customizable templates and output directories

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.7.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, openWorldHint=true, and idempotentHint=false, so the safety profile is covered. However, the description adds nothing beyond that: it does not say whether existing files are overwritten, what files are created, or that it writes to the local filesystem — important for a destructive, non-idempotent generator.

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 efficient sentence with no filler, front-loading the verb and resource. It is appropriately sized, though it is perhaps too terse for the scope of what the tool does.

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?

For a destructive, non-idempotent file-generating tool with no output schema, the description omits overwrite behavior, what artifacts are produced, and any prerequisites. Annotations cover the safety flags but leave these operational questions unanswered.

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?

The nested schema actually documents all four sub-parameters in detail (name length limits, type values aura/lwc, template values, outputDirectory semantics), despite the reported 0% coverage metric. The description adds no parameter-level meaning, so the schema carries the burden and baseline 3 applies.

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 (Generate) and resource (Lightning Web Components / Aura components) with scope modifiers (templates, output directories). It is distinguishable from siblings like generate_class and generate_trigger, though the shared 'generate_*' family pattern is not explicitly contrasted.

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 on when to choose this over generate_class, generate_trigger, or schema_generate_tab, and no prerequisites (e.g., whether a default org or login is required) are stated. The agent must infer usage entirely from the name.

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