describe_column
The describe_column tool reports the values one column holds across the site’s catalog. Use it after list_relevant_columns to build valid filters, fill facets, or check a shopper’s input against what the catalog contains. It works only on columns that list_relevant_columns reports. It accepts the read-only token or site credentials.
Request
Section titled “Request”| Field | Type | Required | Description |
|---|---|---|---|
column |
string |
Yes | The name of the column to describe, as list_relevant_columns returns it. |
Response
Section titled “Response”| Field | Type | Always Present | Description |
|---|---|---|---|
column |
string |
Yes | The column name, repeated from the request. |
type |
string |
Yes | The column’s value type, for example Enumerated, Name, Colors, Tree, or Float. See Type and Kind. |
values |
object |
Yes | The column’s values. Its kind field decides its other fields, as the next table shows. |
values.kind |
Column Types | Other Fields |
|---|---|---|
enumerated |
Enumerated, Name, Colors |
values: string[], the distinct values. For a Colors column, each entry is one color token. |
tree |
Tree |
root: McpColumnTreeNode, the root of the category tree. Missing when the tree is empty. |
numeric |
Float, Minimum, Maximum |
min: number and max: number, the lowest and highest values found. Either is missing when no finite value exists. |
boolean |
Boolean |
true_ratio: number from 0 to 1, the share of products with a value that have true. Missing when no product has a value. |
unsupported |
Any other type | reason: string, why the tool returns no values for this type. |
Each McpColumnTreeNode has these fields:
| Field | Type | Always Present | Description |
|---|---|---|---|
path_element |
string |
Yes | This node’s segment of the category path. |
children |
McpColumnTreeNode[] |
Yes | The child nodes. Empty for a leaf. |
Example
Section titled “Example”Request:
{ "column": "price" }Response:
{ "column": "price", "type": "Float", "values": { "kind": "numeric", "min": 4.99, "max": 849 }}Type and Kind
Section titled “Type and Kind”values.kind tells you the shape of the values. type tells you what they mean. Several types share one kind: Enumerated, Name, and Colors all return enumerated values, but a Colors column holds color tokens and a Name column holds proper names. One type never returns more than one kind.
Values That Match No Product
Section titled “Values That Match No Product”The list combines every source of values for the column: the values from your product feed, the values Product Data predicts, and the predictions someone confirmed. So the list can contain a value that is not the final value of any product. A filter on such a value returns no results.
Color Columns
Section titled “Color Columns”Products that store several colors in one value, such as red/blue, are split into single color tokens: red and blue. Each token is written as a color family, such as "red", or as a family and a swatch color in the form "family > #rgb".
Use these tokens as dynamic_filters selections. An equals node in additional_filter compares the exact stored color string, so it can miss products with several colors.
Errors
Section titled “Errors”describe_column has no documented errors of its own. Credential, permission, and rate-limit errors are the same for every tool. See Errors.
Related
Section titled “Related”list_relevant_columns: the columns you can describe- Data Types: the filter objects these values go into
- Catalog Schema Tools: how the two schema tools fit together