Skip to main content
Glama

Theme Settings Form

theme_settings_form

Generates a Drupal theme settings form from a theme machine name, with optional settings and path inputs. Use it to build theme configuration forms for administration.

Instructions

Generate theme settings form.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNo
settingsNo
machine_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

D1.5/5.0
Behavior1/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 burden and delivers nothing: it does not state whether this writes files, modifies config, requires an existing theme, or is idempotent. For a generator tool with zero annotation coverage this is a serious gap.

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

Conciseness2/5

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

It is a single short sentence with no filler, but that brevity comes from under-specification rather than efficiency. There is nothing to front-load because nothing substantive is said.

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. However, with 0% parameter coverage and no annotations, an agent cannot construct a correct call; the description leaves the tool's effect, inputs, and place in the theme workflow completely unexplained.

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% and the description explains none of the three parameters. It gives no hint that machine_name is the theme machine name, what path controls, or what keys the free-form settings object accepts.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Generate theme settings form" essentially restates the tool name and title without saying what is actually produced (a PHP form class? a config schema? a form array?) or where it lands. Among siblings like theme_create, theme_library_create, theme_region_create, and theme_preprocess_function, it gives no basis for telling this apart from other theme scaffolding tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines1/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no prerequisites, and no mention of alternative tools. An agent has no way to know whether this should be called before or after theme_create, or what the required machine_name should refer to.

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