Skip to main content
Glama

Find product configurations

get_product_options
Read-onlyIdempotent

Use this when a seller wants supplier pricing for a specific print-on-demand product size or color, such as an adult M black T-shirt or an 11 oz mug. Lists the product's fields and supported configurations for the destination and currency; narrow with words or choices. Pass a returned key as optionKey, or its choices, to compare_product. Search products first to obtain canonicalProductId. Supported destinations: US, GB, DE, AU, CA.

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": {
      "canonicalProductId": "<canonicalProductId>",
      "destination": "<destination>",
      "currency": "<currency>"
    },
    "name": "get_product_options"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many results to return.
queryNoWords to narrow the list, such as `m black`.
offsetNoHow many results to skip. Pass nextOffset from the previous page.
choicesNoChoices by field, such as { "size": "m", "color": "black" }. Values match a value key, its last part or its label, case-insensitively; get_product_options lists them.
currencyYesCurrency for every price, such as USD, GBP or EUR.
destinationYesThe buyer's country, where the order ships. Product cost, shipping and duty depend on it.
canonicalProductIdYesA product id from search_products or resolve_supplier_link, such as `cotton-ringer-tee`.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / destination / description
      Previous value: -"Where the buyer lives: US, GB, DE, CA or AU."New value: +"The buyer's country, where the order ships. Product cost, shipping and duty depend on it."
  2. Changed5 schema fields changed
    • addedInput schema / properties / canonicalProductId / description
      Added value: +"A product id from search_products or resolve_supplier_link, such as `cotton-ringer-tee`."
    • addedInput schema / properties / currency / description
      Added value: +"Currency for every price, such as USD, GBP or EUR."
    • addedInput schema / properties / limit / description
      Added value: +"How many results to return."
    • addedInput schema / properties / offset / description
      Added value: +"How many results to skip. Pass nextOffset from the previous page."
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "defaultOptionKey": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "fields": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "field": {
      -              "type": "string"
      -            },
      -            "label": {
      -              "type": "string"
      -            },
      -            "values": {
      -              "items": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "label": {
      -                    "type": "string"
      -                  },
      -                  "value": {
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "value",
      -                  "label"
      -                ],
      -                "type": "object"
      -              },
      -              "type": "array"
      -            }
      -          },
      -          "required": [
      -            "field",
      -            "label",
      -            "values"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "nextOffset": {
      -        "anyOf": [
      -          {
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "ok": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "options": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "choices": {
      -              "additionalProperties": {
      -                "type": "string"
      -              },
      -              "propertyNames": {
      -                "type": "string"
      -              },
      -              "type": "object"
      -            },
      -            "key": {
      -              "type": "string"
      -            },
      -            "label": {
      -              "type": "string"
      -            },
      -            "supplierCount": {
      -              "maximum": 9007199254740991,
      -              "minimum": 0,
      -              "type": "integer"
      -            }
      -          },
      -          "required": [
      -            "key",
      -            "label",
      -            "choices",
      -            "supplierCount"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 100,
      -        "type": "array"
      -      },
      -      "totalCount": {
      -        "maximum": 9007199254740991,
      -        "minimum": 0,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "fields",
      -      "options",
      -      "totalCount",
      -      "nextOffset",
      -      "defaultOptionKey"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "error": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "code": {
      -            "enum": [
      -              "invalid_input",
      -              "not_found",
      -              "product_not_found",
      -              "invalid_option",
      -              "comparison_unavailable",
      -              "unavailable",
      -              "rate_limited"
      -            ],
      -            "type": "string"
      -          },
      -          "message": {
      -            "type": "string"
      -          },
      -          "retryable": {
      -            "type": "boolean"
      -          }
      -        },
      -        "required": [
      -          "code",
      -          "message",
      -          "retryable"
      -        ],
      -        "type": "object"
      -      },
      -      "ok": {
      -        "const": false,
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "defaultOptionKey": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "The configuration compare_product uses when none is given; null when the product has none."
      +      },
      +      "fields": {
      +        "description": "The choice fields this product has and their available values.",
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "field": {
      +              "description": "The field name to use in `choices`, such as size or color.",
      +              "type": "string"
      +            },
      +            "label": {
      +              "description": "The field as a person would say it, such as Size.",
      +              "type": "string"
      +            },
      +            "values": {
      +              "description": "The values this field has among the matching configurations.",
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "label": {
      +                    "description": "That value as the supplier names it.",
      +                    "type": "string"
      +                  },
      +                  "value": {
      +                    "description": "The value to pass back in `choices`.",
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "value",
      +                  "label"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            }
      +          },
      +          "required": [
      +            "field",
      +            "label",
      +            "values"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "nextOffset": {
      +        "anyOf": [
      +          {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Offset to pass for the next page; null on the last page."
      +      },
      +      "ok": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "options": {
      +        "description": "The matching configurations.",
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "choices": {
      +              "additionalProperties": {
      +                "type": "string"
      +              },
      +              "description": "The same choice by field, ready for compare_product `choices`.",
      +              "propertyNames": {
      +                "type": "string"
      +              },
      +              "type": "object"
      +            },
      +            "key": {
      +              "description": "The configuration's key, to pass as optionKey.",
      +              "type": "string"
      +            },
      +            "label": {
      +              "description": "The configuration in words, such as `Adult M / Black`.",
      +              "type": "string"
      +            },
      +            "supplierCount": {
      +              "description": "How many suppliers price this configuration.",
      +              "maximum": 9007199254740991,
      +              "minimum": 0,
      +              "type": "integer"
      +            }
      +          },
      +          "required": [
      +            "key",
      +            "label",
      +            "choices",
      +            "supplierCount"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 100,
      +        "type": "array"
      +      },
      +      "totalCount": {
      +        "description": "How many configurations match in total, across every page.",
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "fields",
      +      "options",
      +      "totalCount",
      +      "nextOffset",
      +      "defaultOptionKey"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "error": {
      +        "additionalProperties": false,
      +        "description": "The error this call returned instead of a result.",
      +        "properties": {
      +          "code": {
      +            "description": "The machine-readable reason the call failed.",
      +            "enum": [
      +              "invalid_input",
      +              "not_found",
      +              "product_not_found",
      +              "invalid_option",
      +              "comparison_unavailable",
      +              "unavailable",
      +              "rate_limited"
      +            ],
      +            "type": "string"
      +          },
      +          "message": {
      +            "description": "What went wrong, in words, and what to do next.",
      +            "type": "string"
      +          },
      +          "retryable": {
      +            "description": "Whether calling again could succeed.",
      +            "type": "boolean"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "message",
      +          "retryable"
      +        ],
      +        "type": "object"
      +      },
      +      "ok": {
      +        "const": false,
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description contributes scoping behavior the annotations cannot: results are constrained by destination and currency, and only five destinations are supported. It stops short of describing result volume or pagination behavior, but the read-only profile makes that a minor omission.

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 trigger condition is front-loaded in the first sentence, followed by what is returned, then the chaining instructions. It is dense and nearly every clause carries information, though the final sentence listing supported destinations is somewhat list-like and could be folded into the preceding scoping statement.

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?

For a 7-parameter read tool with an output schema, the description covers the trigger, the required prerequisite id, the scoping constraints, the narrowing mechanics, and the follow-on call. Return-value detail is correctly left to the output schema, so nothing an agent needs to invoke this correctly is missing.

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%, so the baseline is 3, but the description adds real meaning: it explains that 'words or choices' narrow the list, illustrates choices with a size/color example, ties currency to destination-scoped pricing, and links the returned option key to compare_product's optionKey. That connector between two tools is value the schema alone cannot convey.

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?

The description states a specific verb and resource — it 'lists the product's fields and supported configurations' for a print-on-demand product, scoped by destination and currency — and gives concrete examples (adult M black T-shirt, 11 oz mug). It is clearly distinguishable from siblings because it names search_products as the prerequisite step and compare_product as the downstream consumer.

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 an explicit trigger ('Use this when a seller wants supplier pricing for a specific... size or color'), a prerequisite ('Search products first to obtain canonicalProductId'), and an exit path ('Pass a returned key as optionKey, or its choices, to compare_product'). Narrowing with words or choices is also spelled out, leaving little to inference.

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.