Skip to content

Get Data Schema Tool

This tool returns the schema — tables, columns, and sample values — for a data product. Agents use it to understand what data is available before doing heavier work such as running queries.

Add this tool to a querying agent so it can discover the data product’s structure first, then write accurate SQL. It pairs naturally with the SQL Execution Tool.

ParameterRequiredTypeSuggested scopeWhat it does
data_product_idYesstringUser inputThe data product to inspect.
queryNostringAgent determinedA search phrase to semantically match sample column values, useful for large schemas.
data_product_versionNostringFixed or User inputA specific version of the data product.
pre_exec_sqlNostringFixedSQL to run before sampling tables, e.g. to set session context.
auth_idNostringFixed or User inputThe authentication credentials to use.
{
"data_product_id": "my-data-product",
"query": "customer email"
}

Metadata and sample column values for the tables in the data product.