introspect_graphql_schema
Retrieves the Shopify Admin API GraphQL schema elements matching a query, so you can inspect types, queries, or mutations without unrelated API definitions.
Instructions
This tool introspects and returns the portion of the Shopify Admin API GraphQL schema relevant to the user prompt. Only use this for the Shopify Admin API, and not any other APIs like the Shopify Storefront API or the Shopify Functions API.
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": {
"conversationId": "<conversationId>",
"query": "<query>",
"api": "<api>"
},
"name": "introspect_graphql_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api | Yes | The API to introspect. Valid options are: Default is 'admin'. | admin |
| query | Yes | Search term to filter schema elements by name. Only pass simple terms like 'product', 'discountProduct', etc. | |
| filter | No | Filter results to show specific sections. Valid values are 'types', 'queries', 'mutations', or 'all' (default) | |
| version | No | The version of the API to introspect. MUST be one of . Default is 'undefined'. | |
| conversationId | Yes | 🔗 REQUIRED: conversationId from learn_shopify_api tool. Call learn_shopify_api first if you don't have this. |