Skip to main content
Glama

Module Form Create

module_form_create

Scaffold Drupal form classes like ConfigForm, ConfirmForm, or FormBase with proper structure to simplify custom module development.

Instructions

Create a form class (ConfigForm, ConfirmForm, FormBase, etc.) with proper scaffolding.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNo
fieldsNo
form_idNo
form_nameYes
form_typeNoConfigForm
class_nameNo
machine_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. 'Scaffolding' implies file generation, but it never says where files are written, whether existing files are overwritten, what permissions or environment are required, or whether the operation is idempotent. For a mutating create tool this is a significant gap.

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 front-loaded sentence with no filler. It is efficient, though it errs toward under-specification rather than over-verbosity.

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?

An output schema exists, so return values need not be described. But with 7 parameters at 0% schema coverage and no annotations, the description is far too thin to let an agent call the tool correctly — key inputs and the write behavior are undocumented.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 7 parameters, so the description must compensate — but it only implicitly touches form_type via the listed form classes. machine_name, form_name, form_id, class_name, path, and fields are left entirely unexplained, and the distinction between form_id and class_name is not clarified.

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 (Create) and resource (form class) and gives concrete examples of the form types produced (ConfigForm, ConfirmForm, FormBase) plus the scaffolding aspect. However, it does not distinguish itself from siblings like module_controller_create, module_plugin_create, or module_service_create, so an agent must infer the difference.

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?

The description gives no guidance on when to use this tool versus the many other module_* scaffolding tools (module_controller_create, module_plugin_create, module_service_create, module_hook_implement). No prerequisites, no exclusions, no alternatives named.

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

Deploy Server

Other Tools