Skip to main content
Glama

Module Plugin Create

module_plugin_create

Create Drupal plugins such as blocks, fields, or views with proper scaffolding.

Instructions

Create a plugin (block, field, views, etc.) with proper scaffolding.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNo
labelYes
plugin_idYes
class_nameNo
annotationsNo
descriptionNo
plugin_typeYes
machine_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral disclosure burden. It hints at write behavior and file scaffolding, but does not state permissions required, whether existing files are overwritten, where files are written, or what side effects occur.

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?

The description is a single front-loaded sentence with no filler. It is structurally efficient, though its brevity contributes to the missing semantic detail scored elsewhere.

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?

The tool has 8 input parameters, 4 required, an output schema, and no annotations. The description is far too sparse for that complexity and fails to document input meaning or behavioral context, leaving the agent with almost nothing beyond the name.

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

Parameters1/5

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

Schema description coverage is 0% across 8 parameters, so the description must compensate, and it does not. It mentions plugin types generally but gives no meaning for machine_name, plugin_id, label, path, class_name, annotations, or description.

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 (Create), resource (plugin), and examples of plugin subtypes (block, field, views), plus the qualifier 'with proper scaffolding.' It is clear enough, but it does not distinguish this tool from similarly named siblings such as module_controller_create, module_event_subscriber_create, or module_hook_implement.

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 guidance on when to use this tool rather than one of the many related creation tools. The implied context is simply that the user wants to create a plugin, but no prerequisites, alternatives, or exclusions are 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