graphql_query
Run custom GraphQL queries against Shopify Admin API for advanced operations not available through standard tools.
Instructions
Executes an arbitrary GraphQL query against the Shopify Admin API. For advanced queries not covered by other tools.
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": {
"query": "<query>"
},
"name": "graphql_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | GraphQL query or mutation | |
| variables | No | GraphQL variables (optional) |