Skip to main content
Glama
shopify-mcp-complete

shopify-mcp-complete

by hishamalhadi

get-theme-files

Read Shopify theme files including templates, sections, assets, and config, returning liquid or JSON content. Use wildcard filters like templates/*.json to retrieve only the files needed.

Instructions

Read theme files (templates, sections, assets, config). Returns file content for liquid and JSON files. Use wildcards like 'templates/.json' or 'sections/.liquid' to filter files.

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>"
    },
    "name": "get-theme-files"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of files to return
themeIdYesTheme ID or GID
filenamesNoSpecific filenames to retrieve (supports wildcards like 'templates/*.json'). If omitted, returns all files.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose that content is returned and that both liquid and JSON files are covered. It does not say what happens with binary assets in the 'assets' folder, whether large results are truncated at the limit, or whether there are size/rate constraints — meaningful gaps for a file-reading tool.

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 primary action front-loaded and scope enumeration immediately after; nothing is bloated. Minor redundancy in repeating the wildcard syntax already present in the schema keeps it from a 5.

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 simple 3-parameter read tool with full schema coverage and no output schema, the description covers the essentials: what is read, what comes back, and how to filter. It falls short on asset/binary handling and result-size behavior, which an agent would need to call this confidently on a real theme.

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 100%, so themeId, filenames, and limit are already fully documented, establishing the baseline of 3. The description's wildcard example ('templates/*.json', 'sections/*.liquid') essentially duplicates the schema's own example rather than adding new semantics.

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 specific verb ('Read') and resource ('theme files'), then enumerates the scope (templates, sections, assets, config) and return payload ('file content for liquid and JSON files'). The read-only framing implicitly separates it from delete-theme-files and update-theme-files, though it never names them explicitly.

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?

Usage is implied rather than stated: the wildcard sentence hints at filtering workflows, but there is no guidance on when to use this over get-themes (e.g., 'call get-themes first to obtain themeId') nor any stated exclusions. An agent must infer the calling context.

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