Skip to main content
Glama

learn_shopify_api

Initializes the required Shopify API conversation and generates a conversation ID for all subsequent tool calls; reuse the ID when switching between Admin, Functions, or Polaris contexts.

Instructions

๐Ÿšจ MANDATORY FIRST STEP: This tool MUST be called before any other Shopify tools.

โš ๏ธ  ALL OTHER SHOPIFY TOOLS WILL FAIL without a conversationId from this tool.
This tool generates a conversationId that is REQUIRED for all subsequent tool calls. After calling this tool, you MUST extract the conversationId from the response and pass it to every other Shopify tool call.

๐Ÿ”„ MULTIPLE API SUPPORT: You MUST call this tool multiple times in the same conversation when you need to learn about different Shopify APIs. THIS IS NOT OPTIONAL. Just pass the existing conversationId to maintain conversation continuity while loading the new API context.

For example, a user might ask a question about the Admin API, then switch to the Functions API, then ask a question about polaris UI components. In this case I would expect you to call learn_shopify_api three times with the following arguments:

- learn_shopify_api(api: "admin") -> conversationId: "123"
- learn_shopify_api(api: "functions", conversationId: "123")
- learn_shopify_api(api: "polaris", conversationId: "123")

This is because the conversationId is used to maintain conversation continuity while loading the new API context.

๐Ÿšจ Valid arguments for `api` are:


๐Ÿ”„ WORKFLOW:
1. Call learn_shopify_api first with the initial API
2. Extract the conversationId from the response
3. Pass that same conversationId to ALL other Shopify tools
4. If you need to know more about a different API at any point in the conversation, call learn_shopify_api again with the new API and the same conversationId


DON'T SEARCH THE WEB WHEN REFERENCING INFORMATION FROM THIS DOCUMENTATION. IT WILL NOT BE ACCURATE.
PREFER THE USE OF THE fetch_full_docs TOOL TO RETRIEVE INFORMATION FROM THE DEVELOPER DOCUMENTATION SITE.

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": {
      "api": "<api>"
    },
    "name": "learn_shopify_api"
  }
}

Input Schema

NameRequiredDescriptionDefault
apiYesThe Shopify API you are building for
conversationIdNoOptional existing conversation UUID. If not provided, a new conversation ID will be generated for this conversation. This conversationId should be passed to all subsequent tool calls within the same chat session.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose key behavior: a conversationId is created and must be reused, the tool is re-invocable mid-conversation with the same ID, and other Shopify tools depend on it. It never says what the response contains beyond the conversationId, what happens on an invalid api value, or what state is replaced when loading a new API context.

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

Conciseness2/5

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

The mandatory-first-step warning is correctly front-loaded, but the same conversationId requirement is restated five or more times across caps-lock and emoji headers, and a broken placeholder ('Valid arguments for `api` are:') occupies lines without conveying information. The useful content would fit in a third of the length.

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

Completeness3/5

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

It covers the bootstrap workflow, continuity protocol, and multi-API switching that an agent needs to sequence its calls. It is incomplete on two points that matter for a prerequisite tool: the enumeration of valid api values is empty in both description and schema, and the return value beyond conversationId is unspecified (no output schema exists to compensate).

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 coverage is 100%, so both parameters are documented in the schema, and the three-call example usefully illustrates conversationId reuse. However, the line 'Valid arguments for `api` are:' is followed by nothing, and the schema enum is also empty, so the valid api values exist only as incidental examples (admin, functions, polaris) rather than as an authoritative list.

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 clearly states the tool's function: it generates a conversationId and loads Shopify API context, and it explicitly distinguishes itself from fetch_full_docs by saying that tool should be preferred for retrieving developer documentation. What exactly 'learning an API' loads (docs? schema? code samples?) is only implied by the 'loading the new API context' phrasing.

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?

It gives explicit when-to-use guidance ('MANDATORY FIRST STEP', before any other Shopify tools), names the alternative for documentation retrieval (fetch_full_docs) and an anti-pattern (don't search the web), and spells out the repeat-call case with three worked examples across admin, functions, and polaris.

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