Run an Admin GraphQL query
graphql_queryRun read-only Shopify Admin GraphQL queries on any connected store to reach data the curated tools don't cover. Mutations are refused, so use it for safe custom reads.
Instructions
Run a read-only Shopify Admin GraphQL query on one store; mutations are refused here. Use it for anything the curated tools do not cover. Before writing an unfamiliar query, look the fields up with learn_shopify_api (api "admin") and check it with validate (api "admin"). Select pageInfo { hasNextPage endCursor } on connections. Uses the latest stable Admin API version unless api_version is set.
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": "graphql_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | GraphQL query document. | |
| store | Yes | No stores are connected yet. Call connect_store first. | |
| variables | No | GraphQL variables. | |
| api_version | No | Admin API version such as "2026-10". Omit for the latest stable version. |