Skip to main content
Glama

Publish theme (make it live)

publish_theme

Make an unpublished theme live on your storefront. Requires explicit user confirmation to replace the current live theme.

Instructions

Make an unpublished theme the live storefront theme. DESTRUCTIVE for the current live theme's status — only call after the user has previewed the theme and explicitly asked to publish. confirm must be true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmYesMust be true; set only after explicit user confirmation
theme_idYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden. It explicitly warns 'DESTRUCTIVE for the current live theme's status,' disclosing the key side effect. It doesn't mention reversibility or the exact fate of the old theme, but the most critical behavioral trait is clearly disclosed.

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?

The description is three tight sentences with zero filler. The action is front-loaded, the destructive warning is placed immediately after, and the confirm requirement concludes it. Every sentence earns its place.

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?

For a two-parameter tool with no output schema, the description covers the action, the destructive side effect, and the required confirmation. Minor gaps include no mention of return values or what exactly happens to the old live theme beyond its status changing, but these are not critical for successful invocation.

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?

The schema already thoroughly documents confirm, and the description reinforces its precondition ('confirm must be true') without adding new meaning. The theme_id parameter has no schema description and the tool description doesn't explain it either, though its meaning is fairly inferable from the tool's purpose. At 50% schema coverage, the description only partially compensates.

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 clearly states the specific action: making an unpublished theme the live storefront theme. This distinguishes it from generic file operations and defines a clear state change. However, it does not explicitly reference sibling alternatives like list_themes or create_theme, 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 Guidelines4/5

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

The description gives an explicit precondition: 'only call after the user has previewed the theme and explicitly asked to publish.' This is clear when-to-use guidance and implies when-not-to-use (do not call before user confirmation). It doesn't explicitly name alternative tools, so it loses a point for missing alternative routing.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/GOFORWRD/shopify-theme-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server