Skip to main content
Glama

Webform Element Create

webform_element_create

Add a new element to a Drupal webform by providing the webform ID, element key, element type, and label.

Instructions

Add an element to a webform.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
labelYes
propertiesNo
webform_idYes
element_keyYes
element_typeYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.4/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 burden of behavioral disclosure. It implies a write operation ('Add') but says nothing about permissions, side effects, required field validation, or whether duplicate element keys are allowed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single front-loaded sentence with no wasted words. However, its extreme brevity leaves it under-specified rather than genuinely concise and complete.

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?

Given a mutation tool with four required parameters, no annotations, and 0% schema description coverage, the description is far too thin. The existence of an output schema covers return values, but the description still lacks prerequisite, parameter, and behavioral context needed for correct invocation.

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% for five parameters, and the description adds no meaning for any of them. It does not explain what element_key, element_type, label, or properties represent, leaving an agent to guess.

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 states a specific verb ('Add') and resource ('element to a webform'), making the basic action unambiguous. It does not distinguish itself from siblings like webform_element_list or webform_update beyond the tool name, preventing a 5.

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 single sentence gives no when-to-use conditions, no alternatives, and no prerequisites. An agent has no guidance on when this tool is appropriate versus webform_update or webform_element_list.

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