Skip to main content
Glama

Shopify MCP by InsightfulPipe

Shopify Data Query

query_data
Read-only

Query Shopify data (Step 3 (FINAL) of workflow).

REQUIRED: Complete these steps first using query_contexts:

  1. request='accounts' - Get workspace_id, brand_id AND available_actions

  2. request='actions_details' with actions=['xxxxxx', 'xxxxxx', 'xxxxxx'] - Get detailed body structure for specific action(s) using actions from available_actions

IMPORTANT: Always call step 2 to see the exact body structure before querying.

Rely on info from steps 1-2 to construct the query body. Follow the schema exactly.

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": {
      "body": "<body>"
    },
    "name": "query_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/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 genuinely non-structural behavior: this is the terminal step of a mandatory discovery workflow, and the body must be derived from prior `query_contexts` calls rather than invented. It does not mention failure modes (e.g., what happens if the body does not match an available action), which keeps it below a 5.

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

Conciseness4/5

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

The workflow position is front-loaded ("Step 3 (FINAL)") and the numbered prerequisite list is scannable. The "xxxxxx" placeholders and the emphasis lines consume space without conveying information, and "Follow the schema exactly" repeats the preceding instruction.

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 tool whose argument is an opaque free-form object, deferring body construction to `query_contexts` is a defensible design, and an output schema exists so return values need not be explained. The remaining gap is that nothing tells the agent whether workspace_id/brand_id must be embedded in body or are supplied implicitly, which is the single most likely source of a malformed call.

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 0% for the single `body` parameter, which is an untyped free-form object with additionalProperties=true, so the description must carry the load. It does tell the agent to derive body from `actions_details` and to "follow the schema exactly," which is a meaningful pointer. But it never states what fields the body must contain (workspace_id, brand_id, action) and "follow the schema exactly" is circular when the schema defines no properties.

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

Purpose3/5

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

The verb and resource are stated ("Query Shopify data"), and it identifies itself as the final step of a workflow, which gives useful placement. However, "data" is generic and there is no differentiation from the sibling `execute_action` (read vs. write) or any hint about what kind of Shopify entities are queryable. An agent must infer the scope.

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?

Explicitly prescribes the prerequisite sequence: call `query_contexts` with request='accounts' for workspace_id/brand_id/available_actions, then request='actions_details' for the body structure, and repeats "Always call step 2." That is clear when-and-how guidance. It stops short of saying when NOT to use this versus `execute_action` (e.g., when the intent is a mutation).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.