Skip to main content
Glama

Get a Shopify Record

shopify_get
Read-onlyIdempotent

Fetches a single Shopify record by GID from a selected store, supporting resources like products, orders, and inventory. Follows cursors for paginated data.

Instructions

Read one record by GID from one store. Follow each returned cursor independently. Resources:

  • product: Product details, variants (first/after) and media (mediaAfter). id: Product GID.

  • collection: Collection details, rules and a page of products. id: Collection GID.

  • order: Order, shipping, fulfillment, tracking and a page of line items. id: Order GID.

  • inventory: Inventory by product (id: Product GID) or inventory item (id: InventoryItem GID, pages through locations).

  • metafields: Metafields of any owner (id: owner GID); optional namespace and key.

  • theme_files: Theme file contents. id: OnlineStoreTheme GID; optional filenames, else pages through every file.

  • blog_articles: A blog's articles. id: Blog GID.

  • uploaded_image: Image processing status and CDN URL. id: MediaImage GID.

  • bulk_operation: A bulk operation's status and result URLs. id: BulkOperation GID. Partial exports stay marked incomplete.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe record's GID, such as gid://shopify/Product/123.
keyNometafields: only this key.
afterNo
firstNo
storeYes
resourceYes
filenamesNotheme_files: only these files.
namespaceNometafields: only this namespace.
mediaAfterNoproduct: cursor for the media page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.1

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/openWorld/non-destructive, so the safety profile is covered. The description adds genuinely non-obvious behavior: 'Follow each returned cursor independently' for pagination and 'Partial exports stay marked incomplete' for bulk operations, plus the per-resource return contents.

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 core purpose is front-loaded in one sentence, followed by a scannable per-resource list where each bullet carries distinct information. It is long but nearly every line earns its place; density is acceptable given nine resource modes.

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 multi-mode read tool with no output schema, the description covers what each resource returns and its id type well. It falls short only on the store parameter, the pagination params (after/first), and any auth/rate-limit context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 56%, so the description must compensate, and it does meaningfully: it explains that 'id' is a different GID type per resource (Product, Collection, Order, InventoryItem, MediaImage, etc.), and clarifies the optional 'namespace'/'key' and 'filenames' behavior. However, `store`, `after`, and `first` are never explained in the description or schema.

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?

States a specific verb+resource+scope: 'Read one record by GID from one store.' The resource list enumerates exactly what kinds of records can be fetched, clearly distinguishing a direct GID read from sibling search/query tools.

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 by 'Read one record by GID,' but there is no explicit when-to-use or when-not guidance (e.g., versus shopify_search or shopify_graphql_query) and no stated prerequisites. The agent must infer that a GID is required to prefer this over searching.

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