Skip to main content
Glama

Theme Asset Optimize

theme_asset_optimize

Configure a Drupal theme's asset optimization settings, including CSS/JS aggregation and optimization, to control how front-end files are bundled and served.

Instructions

Configure theme asset optimization.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNo
aggregateNo
optimize_jsNo
machine_nameYes
optimize_cssNo

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?

With no annotations provided, the description carries full behavioral burden but says nothing about permissions, side effects, reversibility, defaults, or what happens to existing theme assets. 'Configure' implies a mutation but provides no safety or scope detail.

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?

The single sentence is front-loaded but severely under-specifies a five-parameter tool; it is sparse rather than economical, failing to earn its place by conveying only the title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given a mutation tool with no annotations, 0% schema parameter coverage, and five parameters, the description is inadequate. An output schema exists, but the input side is entirely unexplained, leaving the agent without prerequisites or parameter context.

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 does not mention any parameter (machine_name, path, aggregate, optimize_js, optimize_css). No meaning is added beyond the bare schemas.

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?

The description restates the tool title almost verbatim ('Configure theme asset optimization' for 'Theme Asset Optimize') and offers no specifics about which optimization settings are configured or how this differs from sibling theme tools such as theme_settings_form or theme_base_change.

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 indication of when to use this tool, when not to use it, or which sibling alternatives exist for theme asset configuration. The agent receives no routing guidance.

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