Skip to main content
Glama

shopify_delete_theme

DestructiveIdempotent

Remove a Shopify development theme and all associated files permanently after confirming the required lifecycle digest; main and unpublished release candidate themes remain protected.

Instructions

Permanently delete a DEVELOPMENT theme and all of its files. This operation currently fails closed before dispatch until Spring can durably retain a complete recovery snapshot before the provider boundary. UNPUBLISHED release candidates and MAIN themes are immutable (SHOPIFY_THEME_ROLE_PROTECTED).

Args:
    theme_id (required): DEVELOPMENT theme ID to delete (numeric or GID).
    expected_preimage_sha256 (required): Exact governed get_theme lifecycle digest approved for deletion.
    project_id: Authenticated Project UUID.
    project_ref: Exact project correlation reference.
    connector_account_ref: Project-bound connector account alias.
    idempotency_key: Stable business-action identity.
    effect: Claimed read or write effect; Spring verifies it.
    approval_ref: Approved platform task UUID when resuming a write.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
effectNo
theme_idNo
project_idNo
project_refNo
approval_refNo
idempotency_keyNo
connector_account_refNo
expected_preimage_sha256No

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

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

  1. Addedv0.1.1

TDQS

A4.3/5.0
Behavior5/5

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

The description discloses critical behaviors beyond annotations: this is a permanent deletion of a theme and all its files, the operation fails closed before dispatch until Spring can durably retain a recovery snapshot, and theme roles are protected. Annotations state destructiveHint=true, and the description expands on what gets destroyed and under what guard condition, which provides strong transparency for a destructive operation.

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

Conciseness4/5

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

The main narrative is front-loaded and efficient: the first sentence states what happens, the second warns about fail-closed behavior and protected themes. The Args list adds compact labels for each parameter. It is not bloated, though the paragraph lacks separation between user-facing usage guidance and implementation context.

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?

Given that this is a destructive operation with annotations confirming destructiveness, the description appropriately emphasizes what can be deleted, what cannot, and the fail-closed safeguard. With an output schema present and no nested objects, it needn't explain return values. The only gap is that several parameters like idempotency_key, effect, and approval_ref may be required in practice even though schema marks them optional, and the description doesn't clarify prerequisites.

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 coverage is 0%, so the description carries the full burden for parameter meaning. It explains theme_id and expected_preimage_sha256 meaningfully, but the remaining parameters (project_id, project_ref, connector_account_ref, idempotency_key, effect, approval_ref) get only terse labels like 'Authenticated Project UUID' and 'Exact project correlation reference.' That's enough to understand their role vaguely, but not enough to know how to obtain valid values. Baseline for low coverage is compensation; this partially compensates but leaves gaps.

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

Purpose5/5

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

The description opens with a clear verb+object: permanently delete a DEVELOPMENT theme and all its files. It also differentiates scope by explicitly stating what is immutable (UNPUBLISHED release candidates and MAIN themes). This distinguishes it from sibling tools like shopify_delete_theme_files or shopify_duplicate_theme.

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 clearly states when the tool is applicable: only DEVELOPMENT themes, and explicitly states that UNPUBLISHED release candidates and MAIN themes are protected. It lacks an explicit pointer to alternative tools for those protected themes, but the exclusion is clear enough for an agent to know not to call this on non-development themes.

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

Install Server

Other Tools

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/RPasquale/lightbulb-mcp'

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