Skip to content
Panel(opens in a new tab)

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.

Field Type Required Description
column string Yes The name of the column to describe, as list_relevant_columns returns it.
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.

Request:

{ "column": "price" }

Response:

{
"column": "price",
"type": "Float",
"values": { "kind": "numeric", "min": 4.99, "max": 849 }
}

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.

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.

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.

describe_column has no documented errors of its own. Credential, permission, and rate-limit errors are the same for every tool. See Errors.