Skip to main content
Glama

Update theme file

update_theme_file
Destructive

Create or update a theme file. Requires a Pro subscription. Copies the built-in theme first if no custom files exist yet.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
blogIdYesBlog ID. Use list_blogs to discover available blog IDs.
contentYesFull file content.
file_pathYesText theme file path ending in .liquid, .css, .js, .html, .json, .xml, or .txt.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / file_path / pattern
      Previous value: -"\\.(liquid|css|js|html|json|xml|txt)$"New value: +"^.+\\.(liquid|css|js|html|json|xml|txt)$"
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare destructiveHint=true, idempotentHint=false, and openWorldHint=true. The description adds two pieces of behavior the annotations don't cover: the Pro-subscription requirement and the side effect of copying the built-in theme when no custom files exist. That copy-on-write side effect is exactly the kind of non-obvious behavior worth disclosing.

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

Conciseness5/5

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

Three short sentences, front-loaded with the core action, then prerequisite, then the conditional side effect. Every sentence carries information an agent needs and none is redundant.

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

Completeness4/5

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

With an output schema present, return values needn't be explained, and the annotations cover the safety profile. The description fills the remaining gaps (subscription gate, built-in-theme copy behavior) adequately, though it could say more about how updates affect existing files.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with each of the three parameters documented in the schema (including the allowed file extensions pattern). The description adds no format, syntax, or size guidance beyond that, so the baseline of 3 for fully-covered schemas applies.

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 gives a clear verb+resource ('Create or update a theme file') that an agent can distinguish from siblings like get_theme_file, delete_theme_file, and update_theme_settings. It's slightly inconsistent with the tool name (which says only 'update') and doesn't explicitly route against any sibling, so it stops short of 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 Guidelines3/5

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

It states a real prerequisite ('Requires a Pro subscription'), which is useful gating context. However it gives no guidance on when to use this versus list_theme_files/get_theme_file to inspect first, nor any exclusion conditions, leaving usage largely implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources