Query a Shopify Store
shopify_graphql_queryExecute a read-only GraphQL Admin API query on a specified Shopify store alias. Use cursor pagination and request only necessary fields to inspect data per store, with mutations rejected for security.
Instructions
Run one read-only GraphQL Admin API query against one named store. Use cursor pagination and request only necessary fields.
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": {
"store": "<store>",
"query": "<query>"
},
"name": "shopify_graphql_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | A GraphQL query document. Mutations are rejected. | |
| store | Yes | Configured store alias, such as main-store or wholesale-store | |
| variables | No | GraphQL variables as a JSON object |