Skip to main content
Glama

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

NameRequiredDescriptionDefault
apiYesThe API to introspect. Valid options are: Default is 'admin'.admin
queryYesSearch term to filter schema elements by name. Only pass simple terms like 'product', 'discountProduct', etc.
filterNoFilter results to show specific sections. Valid values are 'types', 'queries', 'mutations', or 'all' (default)
versionNoThe version of the API to introspect. MUST be one of . Default is 'undefined'.
conversationIdYes🔗 REQUIRED: conversationId from learn_shopify_api tool. Call learn_shopify_api first if you don't have this.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full disclosure burden. It does clarify scope (Admin API only) and that results are filtered to the relevant portion, but says nothing about required authentication/credentials, whether the call is purely read-only, rate limits, or the shape of what comes back.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences with zero filler; the primary capability is front-loaded and the API-scoping caveat follows immediately.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only introspection tool with a fully documented five-parameter schema and no output schema, the description covers what is needed. The remaining gap is that the learn_shopify_api prerequisite and result shape are only implied via the schema rather than stated in the prose.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all five parameters, including the conversationId prerequisite and the filter/query semantics. The description adds no parameter-level meaning beyond that, which is the baseline expectation when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('introspects') plus a precise resource ('portion of the Shopify Admin API GraphQL schema relevant to the user prompt'), which is far more informative than the name alone. It does not, however, distinguish itself from sibling documentation tools like fetch_full_docs or search_docs_chunks, so an agent must infer the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit negative constraint: use only for the Shopify Admin API, not Storefront or Functions APIs. What's missing is positive routing guidance — nothing says when to reach for this instead of fetch_full_docs or search_docs_chunks, nor that learn_shopify_api must run first (that prerequisite lives only in the schema).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.