Skip to main content
Glama
FrontForge

FrontForge

by quardianwolf

create_component

Scaffold a component within a feature's atomic-design layer with proper barrel exports; for mobile, also generate styles.ts with Expo CSS.

Instructions

Create a component inside a feature layer (atoms/molecules/organisms/templates) with proper barrel exports. For mobile, also creates styles.ts with Expo CSS.

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": {
      "cwd": "<cwd>",
      "featureName": "<featureName>",
      "componentName": "<componentName>",
      "layer": "<layer>"
    },
    "name": "create_component"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdYesProject root directory path
layerYesAtomic design layer
platformNoPlatform overrideauto
featureNameYesFeature name (e.g., "Landing")
componentNameYesComponent name in PascalCase (e.g., "HeroSection")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose real side effects: barrel export generation and, for mobile, an additional styles.ts with Expo CSS, plus the platform-specific branching behind the 'auto' default. It does not say whether existing files are overwritten, whether the call fails on collision, or whether the feature directory is created if missing — meaningful gaps for a filesystem-mutating scaffold 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?

Two sentences with zero filler; the core action and its artifacts come first and the conditional platform behavior follows. 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 five-parameter, mutation-oriented tool with no annotations and no output schema, the description covers the happy path and the main side effects but leaves the failure/overwrite semantics and the pre-existence of the feature unaddressed. Adequate to invoke correctly, incomplete for predicting edge behavior.

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 all five parameters are already documented in the schema, and the description mostly restates the layer enumeration. The one piece of added meaning is that 'mobile' corresponds to the Expo platform path producing styles.ts, which clarifies the platform branch slightly beyond the enum alone.

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 (create a component) plus its placement inside a feature layer, enumerating the four atomic layers and the scaffolding side effects (barrel exports, styles.ts for Expo). It is clearly distinguishable from create_feature and create_style by naming the artifacts it produces, though it never explicitly contrasts itself with those siblings.

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 explicit when-to-use or when-not-to-use guidance and no named alternative; the reader must infer that this is the tool for adding a component rather than creating a whole feature or a style file. The only contextual hint is 'inside a feature layer', which implies a feature must already exist but never says so or states what happens if it doesn't.

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