Skip to main content
Glama

Look up a GraphQL type

graphql_introspect
Read-only

Look up Shopify Admin GraphQL schema type fields, arguments, and enum values before querying so requests use real fields instead of guessed names.

Instructions

Describes one type of the Admin GraphQL schema: its fields with their types and arguments, or its enum values. Use it before graphql_query so fields are looked up, not guessed.

Start from "QueryRoot" to see every top-level query, then follow the type names, e.g. "Order", "ProductVariant", "InventoryLevel", "OrderSortKeys".

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": {
      "type_name": "<type_name>"
    },
    "name": "graphql_introspect"
  }
}

Input Schema

NameRequiredDescriptionDefault
type_nameYesExact type name, case-sensitive, e.g. "Order".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds useful shape information about what comes back (fields, types, arguments, enum values) since there is no output schema. However it says nothing about behavior on an unknown or misspelled type name, rate limits, or response size, which matters for an open-world lookup tool.

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 short paragraphs, front-loaded with the definition of the operation before the workflow advice. Every sentence carries distinct information: what it returns, when to call it, and where to start exploring.

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?

With no output schema, the description correctly compensates by describing the returned structure, and it supplies an exploration strategy for a schema-navigation tool. The remaining gap is failure behavior for an invalid type name, minor for a read-only introspection call.

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

Parameters4/5

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

Schema coverage is 100% and the schema already documents type_name as exact and case-sensitive with an example, so the baseline is met by structured data. The description adds value beyond the schema by supplying realistic domain examples ('Order', 'ProductVariant', 'InventoryLevel', 'OrderSortKeys') and the traversal convention of following type names discovered in results.

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

Purpose5/5

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

States a specific verb and resource ('Describes one type of the Admin GraphQL schema') and enumerates exactly what is returned: 'its fields with their types and arguments, or its enum values'. It is clearly separable from the sibling graphql_query, which the description names.

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

Usage Guidelines5/5

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

Gives an explicit ordering rule: 'Use it before graphql_query so fields are looked up, not guessed', naming the alternative tool and the condition that selects it. It also provides an entry point ('Start from "QueryRoot"') and a follow-the-type-names traversal strategy, so the agent knows both when and how to iterate.

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