Skip to main content
Glama

Theme Template Override

theme_template_override

Create a Drupal theme template override by specifying machine name and template name, optionally with custom path or content.

Instructions

Create a template override in theme.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNo
machine_nameYes
template_nameYes
template_contentNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.2/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. It implies a write/create operation but says nothing about what is written to disk, whether an existing override is overwritten, what permissions or theme context are required, or how conflicts are resolved. Only the mutation intent is conveyed.

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?

A single front-loaded sentence with no filler, which is structurally clean. But at this brevity the sentence is under-specified rather than genuinely concise, given a 4-parameter mutation tool.

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?

For a mutation tool with no annotations, 0% parameter documentation, and two required plus two optional parameters, the description is substantially incomplete. The presence of an output schema removes the need to describe return values, but purpose scope, parameter meaning, and side effects are all missing.

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 4 parameters (machine_name, template_name, path, template_content). The description adds no meaning for any of them, so an agent gets zero guidance on what machine_name vs template_name represent or when path/template_content should be supplied.

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

Purpose3/5

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

"Create a template override in theme" names a specific verb (Create) and resource (template override), so the action is discernible. However, it gives no differentiation from adjacent siblings like theme_base_change, theme_preprocess_function, or layout_builder_override_remove, leaving the agent to guess which override mechanism this tool implements.

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 when-to-use guidance, no prerequisites, and no named alternative. The agent cannot tell whether this should be preferred over theme_base_change or theme_preprocess_function for template customization, nor when an override is appropriate at all.

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