Skip to main content
Glama
shopify-mcp-complete

shopify-mcp-complete

by hishamalhadi

update-theme-files

Create or update up to 50 Shopify theme files per request—templates, sections, snippets, config, and assets—to manage theme content through the Admin API.

Instructions

Create or update theme files (templates, sections, snippets, config, assets). 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": "update-theme-files"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYesFiles to create or update (max 50 per request)
themeIdYesTheme ID or GID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does disclose two useful behaviors: write_themes scope is required and production apps need a Shopify exemption. It also caps requests at 50 files. However, it never states whether existing files are overwritten, whether writes are atomic or partially applied on failure, or what a success response contains — notable gaps for a mutation tool with zero annotation coverage.

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, front-loaded with the action and scope, then the batch limit, then the prerequisite. There is no filler, though the 50-file cap is duplicated from the schema and could have been spent on overwrite semantics instead.

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 tool with full schema coverage and no output schema, the core action and prerequisites are covered. Still missing are overwrite/replace semantics and failure behavior, which matter for a bulk write tool whose safety profile is not conveyed by any annotations.

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%, and the schema already documents themeId (ID or GID), filename paths with examples, and the 50-item maxItems. The description's file-type list and "up to 50 files per request" restate schema content rather than adding new meaning, so the 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?

Names a specific verb pair ("Create or update") and resource ("theme files") and enumerates the concrete file kinds covered: templates, sections, snippets, config, assets. That lets an agent separate it from the sibling read/delete tools (get-theme-files, delete-theme-files), though it never names an alternative explicitly.

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?

The description explains what the tool does but gives no when-to-use or when-not guidance, and no routing to get-theme-files or delete-theme-files. The only contextual hint is the production-app exemption note, which is a prerequisite rather than usage guidance.

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