Skip to main content
Glama

Get products

get_products
Read-onlyIdempotent

Returns what a section or page needs to sell products: title, handle, description, price and compare-at price, options, variants, photos (cdn.shopify.com URLs a photo setting takes) and collections. Find ids with search_products. Write only facts these give.

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": {
      "ids": "<ids>"
    },
    "name": "get_products"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesProduct ids from search_products, like gid://shopify/Product/123.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds real value beyond them by specifying the returned payload and clarifying that photos are cdn.shopify.com URLs a photo setting accepts, plus a caution not to invent facts. It omits behavior for missing ids and the 20-id cap, which the schema covers.

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?

One dense, front-loaded sentence that leads with the return payload, then the id source, then the usage constraint. No filler, though the phrasing 'Write only facts these give' is slightly compressed and the field list makes it a long single sentence.

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

Completeness5/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 carries the burden of describing the return shape and does so field by field, including the photo URL semantics. Combined with annotations covering safety and the schema covering the id parameter, an agent has everything needed to call it correctly.

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% and the single 'ids' parameter is documented with format and example (gid://shopify/Product/123). The description only reinforces the source of those ids via search_products, adding no syntax or batching detail beyond the schema — the baseline 3 applies.

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 ('Returns what a section or page needs to sell products') and enumerates the returned fields — title, handle, description, price, compare-at price, options, variants, photos, collections. It also names the sibling search_products as the id source, so an agent can distinguish it from the search tool without opening either schema.

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 routes id discovery to search_products ('Find ids with search_products'), which is the main prerequisite for calling this tool. It also constrains downstream use ('Write only facts these give'), though it does not state when-not-to-use or what happens with invalid/unknown ids.

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.

Resources