Skip to main content
Glama
FrontForge

FrontForge

by quardianwolf

create_feature

Scaffold a new feature directory with Atomic Design layers and barrel index.ts files, so Next.js or Expo projects start with an organized, reusable structure.

Instructions

Create a new feature directory with Atomic Design structure (atoms/, molecules/, organisms/, templates/, hooks/, api/, types/). Each layer gets a barrel index.ts.

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>"
    },
    "name": "create_feature"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdYesProject root directory path
layersNoWhich subdirectories to create
featureNameYesFeature name in PascalCase (e.g., "Landing", "Dashboard", "Profile")

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?

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the concrete side effect — directories per layer plus a barrel index.ts in each — which is meaningful context. However, it omits overwrite/conflict behavior, permission requirements, error cases, and what the tool returns, which matter for a filesystem-mutating 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 tightly packed sentences with the outcome front-loaded and zero filler. The parenthetical layer list and the barrel-file note each convey distinct information.

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 3-parameter creation tool with no annotations and no output schema, the description explains what is built but not the edge cases: behavior when the directory already exists, whether creation is partial/atomic, and what is returned on success. These are the remaining gaps an agent would need to call it safely twice.

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 schema already documents cwd, featureName, and layers including the default layer list and the PascalCase convention. The description's enumeration of the seven default layers largely restates the schema default, and it adds no detail about the non-default options (utils, stores) or naming constraints.

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 names a specific verb and resource ('Create a new feature directory') and enumerates the exact Atomic Design structure that will be produced, so the agent knows precisely what artifact results. It does not explicitly contrast with siblings like create_component or scaffold_project, but the scope (whole feature with layers) is distinct enough to infer.

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 guidance on when to call this versus create_component, scaffold_project, or setup_query_provider, nor any stated prerequisites (e.g., whether cwd must be an existing project, whether a feature can be re-created). Usage must be inferred entirely from the name and structure list.

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