Skip to main content
Glama

Theme Library Create

theme_library_create

Create or update a Drupal theme library to manage CSS/JS assets and dependencies for your theme.

Instructions

Create or update a theme library.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jsNo
cssNo
pathNo
dependenciesNo
library_nameYes
machine_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.1/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 burden, and it delivers almost nothing. The only hint is the 'create or update' phrasing implying upsert semantics; it does not disclose permissions required, what happens to existing js/css/path values on update, or any side effects.

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 and free of padding, which is good, but it is under-specified rather than concise. Length is not the problem; there is simply not enough content to make the sentence useful.

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. Still, for a 6-parameter mutation tool with no annotations and 0% schema coverage, the description is far too thin to let an agent call it correctly.

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 6 parameters, including required machine_name and library_name plus opaque js, css, path, and dependencies objects. The description adds no meaning to any of them, leaving the agent to guess at formats and acceptable values.

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?

States a verb (create or update) and a resource (theme library), so the basic action is identifiable. However, it is vague on scope and gives no differentiation from nearby siblings such as theme_create or theme_settings_form, so an agent cannot confidently pick this over them.

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?

No when-to-use guidance, no prerequisites, and no mention of alternatives. The 'create or update' wording hints at upsert behavior but never explains which conditions trigger creation vs update, nor when a theme library is the right target.

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