Skip to main content
Glama
shopify-mcp-complete

shopify-mcp-complete

by hishamalhadi

delete-theme-files

Deletes up to 50 specified files from a Shopify theme in one request, enabling cleanup of unused or unwanted theme assets. Requires write_themes scope and production app exemption.

Instructions

Delete theme files. Supports up to 50 files per request. Note: Requires write_themes scope and Shopify exemption for production apps.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "themeId": "<themeId>",
      "files": "<files>"
    },
    "name": "delete-theme-files"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYesFilenames to delete (max 50 per request)
themeIdYesTheme ID or GID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden, and it does disclose two real behavioral traits beyond the name: a hard batch ceiling of 50 files per request and required authorization (write_themes scope plus a Shopify exemption for production apps). What it omits is failure semantics — whether deletion is irreversible, what happens if a listed filename does not exist, and whether the operation is all-or-nothing.

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?

Three short sentences with the action front-loaded and the constraints ordered from operational (batch size) to environmental (scope/exemption). No filler, though the 50-file sentence partially restates the schema's maxItems.

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

Completeness3/5

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

For a two-parameter, mutation-only tool with no annotations and no output schema, the definition covers purpose, authorization, and batch limit adequately. It is still thin on the things an agent would most want before calling a destructive tool: irreversibility, partial-failure behavior, and whether the theme must be unpublished.

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%, so both themeId and files are already documented in the schema, and the description only echoes the max-50 constraint already encoded as maxItems 50. themeId is never mentioned in the description, and no extra meaning (e.g. GID format tolerance or relative-path expectations) is added. Baseline 3 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?

"Delete theme files" states a specific verb plus resource, and the destructive verb cleanly separates it from the get-theme-files and update-theme-files siblings. It is not a pure tautology because the batch-limit and scope sentences add scope, but it never names an alternative tool or scope of effect (e.g. which files qualify).

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?

There is no explicit when-to-use or when-not-to-use guidance and no mention of alternatives such as update-theme-files for modifying rather than removing assets. The closest thing to guidance is the precondition note about write_themes scope and the Shopify exemption for production apps, which is implied usage context rather than routing guidance.

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