query_shopify
Run custom GraphQL queries or mutations against the Shopify Admin API to access any endpoint, pass variables, and enable mutations.
Instructions
This tool executes custom GraphQL queries or mutations against the Shopify Admin API. It allows for complete flexibility to access any Shopify Admin API endpoint not covered by the specialized tools, with options to pass variables and enable mutation operations.
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": "query_shopify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The GraphQL query or mutation to execute | |
| variables | No | Optional: Variables for the GraphQL query | |
| allow_mutations | No | Optional: Set to true to allow mutation operations |