Skip to content

Get Data Quality Tool

This tool checks the data quality of one or more catalog tables, or of the tables referenced by a SQL query. Use it to answer “is this data reliable?” before trusting a result. It looks at trust flags, data quality scores, and deprecation warnings, and returns an overall verdict with the specific issues found.

Add this tool to an agent that should validate data before presenting an answer, or that responds to explicit requests like “check data quality” or “is this table trustworthy?”

You provide either a list of table IDs or a SQL query. When you provide a SQL query, you also need to tell the tool which data source it runs against.

ParameterRequiredTypeSuggested scopeWhat it does
table_idsOne of these twolist of integers (max 30)Agent determinedThe tables to check, e.g. [123, 456].
sql_queryOne of these twostringAgent determinedA query whose referenced tables should be checked.
ds_idWith sql_queryintegerUser inputThe Alation data source ID the query runs against (preferred).
db_uriWith sql_querystringFixed or User inputA database URI, as an alternative to ds_id.
dq_score_thresholdNointeger 0–100 (default 70)FixedTables scoring below this are flagged. Higher is stricter.
output_formatNo"json" (default) or "yaml_markdown"Fixedyaml_markdown is more compact when checking many tables.
default_schema_nameNostringFixedDefault schema for unqualified table names in the query, e.g. "public".
bypassed_dq_sourcesNolist of stringsFixedQuality sources to skip, e.g. ["trust_flags"].

See Configuring tool parameters for what the scope column means.

Check specific tables with a stricter threshold:

{
"table_ids": [123, 456],
"dq_score_threshold": 80
}

Check the tables referenced by a query:

{
"sql_query": "SELECT * FROM orders WHERE order_date > '2024-01-01'",
"ds_id": 5
}

An overall status — HIGH DATA QUALITY, LOW DATA QUALITY, or UNKNOWN DATA QUALITY — plus the list of tables that failed checks and any tables where quality could not be determined. If any one table has issues, the overall status is LOW.