Skip to main content
Glama
shopcart-mcp
by Wals-pro

Get Product Details & Variants

get_product
Read-onlyIdempotent

Retrieve Shopify product details by handle or URL, including options, images, exact variant IDs, prices, and availability, to support accurate cart and checkout flows.

Instructions

Retrieve product details, sanitized description text, options, images, and exact numeric variant IDs, prices, and availability for a Shopify product handle or URL.

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": {
      "store_url": "<store_url>",
      "handle_or_url": "<handle_or_url>"
    },
    "name": "get_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
store_urlYesStore domain or HTTPS URL
handle_or_urlYesProduct handle (e.g. 'rolltop-2-0') or full product URL

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds real value by disclosing that the description text is sanitized and that variant IDs are exact numerics, which shapes how an agent parses the result. It does not mention error behavior for invalid stores/handles or any rate or network constraints implied by openWorldHint.

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?

A single front-loaded sentence with the verb first and no filler. The output enumeration is somewhat crammed into one clause chain rather than structured, but nothing is redundant.

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?

There is no output schema, so the description carries the burden of describing return values, and it does enumerate the returned fields (details, description, options, images, variant IDs, prices, availability). For a two-parameter read tool this is largely sufficient; only error/miss behavior and result shape granularity are unstated.

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 both parameters are already documented in the schema, including the handle-vs-URL duality. The description only restates "Shopify product handle or URL" without adding format rules, URL parsing caveats, or whether store_url accepts bare domains and HTTPS URLs differently. Baseline 3 applies.

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 opens with a specific verb ("Retrieve") and resource ("product details") and enumerates what is returned: sanitized description text, options, images, variant IDs, prices, availability. It also names the input resource precisely (a Shopify product handle or URL). It does not distinguish itself from the siblings search_products or inspect_store, so it stops short of a 5.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer this is for fetching full details of one already-known product, whereas search_products presumably finds products. There is no explicit when-to-use statement, no exclusion (e.g., use search_products first if you only have a name), and no guidance on failure when a handle is wrong.

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