Get a Shopify Record
shopify_getRetrieve a single Shopify record by GID from a specified store, including products, orders, customers, inventory, metafields, theme files, or discounts.
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.
customer: Customer details, addresses, marketing consent state and a page of orders, newest first. id: Customer GID.
draft_order: Draft order with status, totals, addresses and line items. id: DraftOrder GID.
variants: Every variant field of a product (price, barcode, tax, inventory policy, weight, cost, origin, HS code, options) with first/after. id: Product GID.
order_transactions: An order's payment transactions (authorizations, captures, refunds, voids). id: Order GID.
order_refunds: An order's refunds with refunded items, restock status and transactions. id: Order GID.
fulfillment_orders: An order's fulfillment orders with status, location, delivery method, holds and line items. id: Order GID.
webhook: One webhook subscription of this app. id: WebhookSubscription GID.
page: One Online Store page with its HTML body, handle, isPublished, publishedAt and templateSuffix. id: Page GID.
article: One blog article with body, summary, author, tags, image, isPublished, publishedAt and its blog. id: Article GID.
metaobject: One metaobject: handle, type, displayName, fields (key, type, value, jsonValue), updatedAt, capabilities. id: Metaobject GID.
metaobject_definition: One metaobject definition with full field definitions and validations. id: MetaobjectDefinition GID.
fulfillment: One fulfillment: status, tracking info (company, number, url), line items, location and createdAt. id: Fulfillment GID (from the order's fulfillments).
discount: One discount in full: status, summary, dates, value, minimum requirement, who is eligible, items it covers, combinesWith, usage limits and usage, and the first 20 codes with a code count. id: DiscountNode, DiscountCodeNode or DiscountAutomaticNode GID.
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": {
"resource": "<resource>",
"store": "<store>",
"id": "<id>"
},
"name": "shopify_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The record's GID, such as gid://shopify/Product/123. | |
| key | No | metafields: only this key. | |
| after | No | ||
| first | No | ||
| store | Yes | ||
| resource | Yes | ||
| filenames | No | theme_files: only these files. | |
| namespace | No | metafields: only this namespace. | |
| mediaAfter | No | product: cursor for the media page. |