Validatar AI Tools Reference

Prev Next

Validatar AI works through 24 tools, and the in-app Validatar AI chat and the Validatar MCP server call the same ones, with the same inputs and the same permission checks. A request that works in the chat works from Claude Code, Cursor or any other MCP client, and the other way round.

Applies to: MCP server: Validatar Cloud and Validatar Server, 2026.1 and later · Validatar AI chat: Validatar Cloud, beta, contact sales to enable

The folder and project tools (create_folder, rename_folder, move_folder, delete_folder, create_project, update_project) arrived in 2026.1.1. The rest arrived in 2026.1.

All tools at a glance

"Read-only" and "Writable" are the two groups you allow or block in Settings > Artificial Intelligence and on each MCP token. Running a test or a script counts as writable: it changes no Validatar object, but it does work against your data sources.

Tool Group Can be undone What it does
describe Read-only Details of one data source, schema, table, column, project, folder, test or job
describe_quick_test Read-only Variables and settings of one quick test for a table or column
list Read-only Child objects of a parent: data sources, schemas, tables, columns, projects, reports, folders, tests or jobs
list_quick_tests Read-only Quick tests available for a table or column
list_custom_metadata_options Read-only Custom fields on an object, their options and current values
convert_url_to_key Read-only Object type and ID from a Validatar page URL
get_global_trust_score_settings Read-only Quality dimensions, severity levels and impact ratings
search_documentation_articles Read-only Searches the Validatar documentation
search_documentation_assistive Read-only Asks the documentation assistant a question
create_quick_test Writable Yes Adds a quick test to a table or column
create_standard_test Writable Yes Creates a standard test
create_template_test Writable Yes Creates a template test
create_data_source Writable Yes Creates a data source
update_data_source Writable Yes Changes a data source
update_custom_metadata Writable Yes Sets custom field values on an object
create_folder Writable Yes Creates a test or job folder
rename_folder Writable Yes Renames a folder
move_folder Writable Yes Moves a folder within its project
delete_folder Writable Yes Deletes a folder and everything in it
create_project Writable Yes Creates a project
update_project Writable Yes Changes a project's name, description, data sources and permissions
execute_standard_tests Writable No Runs standard tests
execute_data_source_script Writable No Runs a SQL or Python script against a data source and returns the rows
revert_action Writable Undoes a change made by one of the twelve tools marked "Yes"

No tool creates jobs or schedules, or materializes a whole template test. Do those in the app.

What limits a tool

Three checks apply to every call, in this order.

  1. Your permissions. A tool runs as the signed-in user (chat) or as the owner of the MCP token, and can do only what that user can do in the app. Some tools state their own requirement: create_project and update_project need Global Admin or Security Admin, create_data_source needs Data Source Admin, update_data_source needs Manage Connections and Schema Metadata on the data source, and execute_data_source_script needs Browse Metadata & Data Profiling on the data source.
  2. The instance setting. An AI Admin chooses which read-only and writable tools Validatar AI may use in Settings > Artificial Intelligence: all of them, none, or a selected list. This applies to the chat and the MCP server alike. A blocked tool returns Usage of the <tool> tool has been denied by an AI Admin.
  3. The MCP token. Each MCP token carries its own read-only and writable tool lists. A tool left off the token returns Tool not permitted by token. See Create API and MCP tokens.

Undo a change

Validatar records every change the twelve undoable tools make. In the chat, undo a change from the chat history. From an MCP client, the tool's result carries a revert_action_key; pass it to revert_action. Test runs and script runs cannot be undone.

Find the IDs the tools need

Most tools take numeric IDs. Two parents use the ID 0:

  • List data sources: list with object_type Catalog, object_id 0, child_type DataSources.
  • List projects or reports: list with object_type Home, object_id 0, child_type Projects or Reports.

Each project in the Projects list carries root_test_folder_id and root_job_folder_id, the IDs of its top-level Tests and Jobs folders. To turn a page you have open in the browser into a type and ID, pass its URL to convert_url_to_key.

Read-only tools

describe

Returns the details of one object.

Parameter Type Required Description
object_type string Yes DataSource, Schema, Table, Column, Project, Folder, Test or Job (singular)
object_id integer Yes The object's ID
output_sections list of strings No Sections to return. Omit for every section that applies to the object type.
window string No Time window for TestKpis: Last24Hours, Last7Days, Last14Days (default), Last30Days, Last90Days or Last365Days

Sections each object type returns. A section that does not apply to the type is ignored.

Object type Sections
DataSource, Schema Statistics, TrustScores, CurrentTestStatus, CustomFields
Table Statistics, TrustScores, CurrentTestStatus, CustomFields, Profiles
Column CurrentTestStatus, Profiles, CustomFields
Project CustomFields, Permissions, DataSources, TestKpis
Folder TestKpis
Test CurrentTestStatus, CustomFields
Job CustomFields

describe_quick_test

Returns one quick test's variables, defaults and settings, so you know what create_quick_test will need.

Parameter Type Required Description
object_type string Yes Table or Column, matching the level of the quick test
object_id integer Yes The table or column ID
template_test_id integer Yes The quick test's ID, from list_quick_tests

list

Returns the child objects of a parent, sorted by name, one page at a time.

Parameter Type Required Description
object_type string Yes The parent's type (see the table below)
object_id integer Yes The parent's ID, or 0 for Home and Catalog
child_type string Yes What to list (plural): see the table below
filters list No Conditions, each {"field": ..., "operator": ..., "value": ...}
page_size integer No Results per page. Default 10.
page_index integer No Page to return, counting from 0
Parent object_type object_id child_type values
Home 0 Projects, Reports
Catalog 0 DataSources
DataSource data source ID Schemas, Tables, Columns, Tests
Schema schema ID Tables, Columns, Tests
Table table ID Columns, Tests
Column column ID Tests
Project project ID Folders, Tests, Jobs
Folder folder ID Folders, Tests, Jobs

DataSources is always listed from Catalog, and Projects and Reports from Home, whatever parent you pass.

A filter's field is one of the fields the results return. name works for every child type; others depend on the type, such as overall_status or severity_level for tests and trust_score for tables. operator is Equals, Contains, GreaterThan, LessThan, GreaterThanEquals or LessThanEquals. Several filters must all match.

{
  "object_type": "Schema",
  "object_id": 12,
  "child_type": "Tables",
  "filters": [
    { "field": "name", "operator": "Contains", "value": "Order" }
  ],
  "page_size": 25
}

The result reports total_page_count, next_page_index and has_more_pages.

list_quick_tests

Returns the quick tests you can add to a table or column. A quick test is a Metadata Driven template test with Enable Adding from Catalog checked, at the same level (table or column), on the object's data source, in a project you belong to that includes that data source.

Parameter Type Required Description
object_type string Yes Table or Column
object_id integer Yes The table or column ID
filter_by_quality_dimension list of strings No Quality dimension names, spelled as in your trust score settings, for example ["Completeness", "Validity"]. An unknown name returns an error.
filter_by_test_status string No All (default), New (quick tests not yet added to this object) or ToUpdate (quick tests already added to it)
filter_by_search_text string No Matches the test name, description, project, creator, comparison type or quality dimension

Each result has already_exists, which is true when the quick test is already on the object.

list_custom_metadata_options

Returns the custom fields on an object, keyed by each field's reference key, with the field type, its options and the current value.

Parameter Type Required Description
object_type string Yes DataSource, Schema, Table, Column, Project, Test, Job or Label
object_id integer Yes The object's ID
only_return_populated boolean Yes true returns only fields that have a value
only_return_visible boolean Yes true returns only fields shown to users
type_equals_filter list of strings No Field types: ShortText, Paragraph, Date, Dropdown, TagList, UserGroupList, TableMetadataReference, ColumnMetadataReference
name_contains_filter string No Text the field name contains
reference_key_contains_filter string No Text the field reference key contains

convert_url_to_key

Turns a Validatar page URL into an object type and ID.

Parameter Type Required Description
url string Yes A URL copied from the browser

It recognizes Catalog pages (data source, schema, table, column), project pages (project, folder, standard test, template test, job), reports, settings, the Marketplace and the user profile. Any other URL returns the type Unknown.

get_global_trust_score_settings

Returns the instance's trust score settings. The create tools take severity levels and quality dimensions by name, so read the names here first.

Parameter Type Required Description
output_sections list of strings No QualityDimensions, SeverityLevels, ImpactRatings. Omit for all three.

search_documentation_articles

Searches the Validatar documentation and returns matching articles.

Parameter Type Required Description
search_query string Yes Words to search for

search_documentation_assistive

Sends a question to the documentation assistant and returns its answer, drawn from the Validatar documentation.

Parameter Type Required Description
prompt string Yes A question in plain language

Writable tools

create_quick_test

Adds the table or column to the quick test's object list and materializes that one child test. The result names the child test.

Parameter Type Required Description
object_type string Yes Table or Column, matching the level of the quick test
object_id integer Yes The table or column ID
template_test_id integer Yes The quick test's ID, from list_quick_tests
variables object Yes Variable values keyed by variable reference key. {} keeps the defaults.
custom_fields object Yes Custom field values for the child test (see Custom field values). {} for none.
{
  "object_type": "Table",
  "object_id": 4127,
  "template_test_id": 88,
  "variables": {},
  "custom_fields": {}
}

create_standard_test

Creates a standard test in a project folder.

Parameter Type Required Description
project_id integer Yes The project
config object Yes The test: name, folder, test data set, control data set, success conditions and settings

The config keys are camelCase. The main ones:

  • name, description, folderId (a test folder in the project).
  • severityLevel and qualityDimension, by name.
  • One test data set: testDataSetScript, testDataSetMacro or testDataSetProfileResult. A script data set takes dataSourceId, scriptText, isScalar, columns, dataSetProcessingType (SingleValue, Table, ColumnAggregation or RowCount) and metaLinks, the catalog tables or columns the test covers.
  • One control data set: controlDataSetScript, controlDataSetMacro, controlDataSetProfileResult, controlDataSetProfileAggregate, controlDataSetNumericValue, controlDataSetNumericRange, controlDataSetStringValue, controlDataSetDateTimeValue, controlDataSetDateTimeRange or controlDataSetTestAggregate.
  • Success conditions and settings: valueSuccessConditionType, overallSuccessConditionType, treatValuesAsType, testMissingResultAction, controlMissingResultAction, testDataSetColumnSelection, testDataSetColumnMappingMethod, qualityScoreMethod.

Give every setting in the last group a value. An omitted choice is sent as 0, which is not a valid option, and the save fails. Your MCP client's tool list carries the full schema.

This test fails when any order in the Wholesale Distribution System points at a customer that does not exist. RowCount turns the rows the query returns into a count, and the control value is 0.

{
  "project_id": 2,
  "config": {
    "name": "Sales.Orders - every order has a customer",
    "description": "Orders whose CustomerID has no row in Sales.Customers. Expect none: an orphaned order drops out of every customer report.",
    "folderId": 41,
    "severityLevel": "High",
    "qualityDimension": "Consistency",
    "testDataSetScript": {
      "dataSourceId": 3,
      "scriptText": "-- Orders with no matching customer. Pass: 0 rows.\nSELECT\n    o.OrderID,\n    o.CustomerID\nFROM Sales.Orders AS o\n-- Anti-join: keep orders whose customer id is missing from Customers.\nLEFT JOIN Sales.Customers AS c\n    ON c.CustomerID = o.CustomerID\nWHERE c.CustomerID IS NULL",
      "isScalar": true,
      "sameAsTestScript": false,
      "columns": [],
      "metaLinks": [
        { "level": "Table", "objectId": 4127, "includeForCoverage": true }
      ],
      "dataSetProcessingType": "RowCount"
    },
    "controlDataSetNumericValue": { "targetValue": 0 },
    "treatValuesAsType": "Numeric",
    "valueSuccessConditionType": "Value",
    "valueSuccessTolerance": 0,
    "overallSuccessConditionType": "Value",
    "overallSuccessTolerance": 0,
    "resultsAreOrdered": false,
    "onlyKeepFailures": false,
    "abortAfterFailures": false,
    "abortFailureCount": 100,
    "abortAfterRows": false,
    "abortRowCount": 100,
    "purgeResults": false,
    "purgeResultsAfterDays": 30,
    "testMissingResultAction": "Fail",
    "controlMissingResultAction": "Fail",
    "testDataSetColumnSelection": "Name",
    "testDataSetColumnMappingMethod": "Automatic",
    "qualityScoreMethod": "AllOrNothing"
  }
}

create_template_test

Creates a template test in a project folder. It saves the template only: materialize it in the app to create the child tests.

Parameter Type Required Description
project_id integer Yes The project
config object Yes The template: name, data source, level, object selection, child test naming, data sets and settings

A template config differs from a standard test config in a few places:

  • templateName and templateDescription name the template; childTestName, childTestDescription and childFolderLocationType (Relative or Absolute) with childFolderRelativePath or childFolderAbsolutePath shape the child tests.
  • dataSourceId and testLevel (Table or Column) sit at the top level, and the script data set holds the script in sql, with Handlebars such as {{schema.name}}.{{table.name}}.
  • Settings that can come from metadata take strings: "True", "False" or "FromMetadata" for on/off settings, and numbers as strings ("100") so they can hold a {{var.name}}.
  • testDataSetColumnType is required.
  • testGenSource picks where the object list comes from: Metadata with metaSelectionType and metaObjectSetItems (named objects) or metadataFilters and customFilters; Query with metaObjectQuery; or File with templateTestImportFileId.

Note: Through the MCP server, a template that selects objects with metadataFilters returns an error (verified on 2026.1.1). Use SelectObjects with metaObjectSetItems, or a Query, and switch to filters in the app if you need them.

This column-level template checks two Sales.Customers columns for NULLs:

{
  "project_id": 2,
  "config": {
    "templateName": "Required Column Not Null",
    "templateDescription": "No NULLs in the listed Sales.Customers columns.",
    "folderId": 41,
    "dataSourceId": 3,
    "testLevel": "Column",
    "testGenSource": "Metadata",
    "metaSelectionType": "SelectObjects",
    "metaObjectSetItems": [
      { "schemaName": "Sales", "tableName": "Customers", "columnName": "CustomerName" },
      { "schemaName": "Sales", "tableName": "Customers", "columnName": "PhoneNumber" }
    ],
    "childTestName": "Not Null - {{table.name}}.{{column.name}}",
    "childTestDescription": "{{schema.name}}.{{table.name}}.{{column.name}} has no NULL values",
    "childFolderLocationType": "Relative",
    "childFolderRelativePath": "{{var.template_test_name}}",
    "severityLevel": "High",
    "qualityDimension": "Completeness",
    "testDataSetColumnType": "Numeric",
    "testDataSetScript": {
      "sql": "-- Rows where {{column.name}} is NULL. Pass: 0 rows.\nSELECT 1 AS NULL_ROW\nFROM {{schema.name}}.{{table.name}}\nWHERE {{column.name}} IS NULL",
      "dataSetProcessingType": "RowCount",
      "isScalar": true,
      "columnSource": "FixedConfiguration",
      "columns": [],
      "metaLinks": [
        { "key": "{{schema.name}}.{{table.name}}.{{column.name}}", "includeForCoverage": true }
      ]
    },
    "controlDataSetNumericValue": { "targetValue": "0" },
    "valueSuccessConditionType": "Value",
    "valueSuccessTolerance": "0",
    "overallSuccessConditionType": "Value",
    "overallSuccessTolerance": "0",
    "resultsAreOrdered": "False",
    "onlyKeepFailures": "False",
    "abortAfterFailures": "False",
    "abortFailureCount": "100",
    "abortAfterRows": "False",
    "abortRowCount": "100",
    "purgeResults": "False",
    "purgeResultsAfterDays": "30",
    "testMissingResultAction": "Fail",
    "controlMissingResultAction": "Fail",
    "testDataSetColumnSelection": "Name",
    "testDataSetColumnMappingMethod": "Automatic",
    "qualityScoreMethod": "AllOrNothing",
    "transferLabels": false,
    "enableAddingFromCatalog": false
  }
}

create_data_source

Creates a data source. Needs the Data Source Admin role.

Parameter Type Required Description
config object Yes The data source and its connection

The main config keys:

  • name, description, referenceKey, environment (an environment name; omit for the default) and projectIds.
  • connectionType: SqlServer, ODBC, OLEDB, PostgreSql, Snowflake, SnowflakeEngine, Databricks, DatabricksEngine or PythonScript.
  • connectionEngineId: the data processing engine. connectionDataSourceTemplateId: the data source template. Both are required, and no tool lists them; read them from the REST API (GET /api/v1/Authoring/data-processing-engines and GET /api/v1/Authoring/data-source-templates). connectionDataAgentGroupId routes the connection through a data agent group.
  • connectionConfiguration, shaped by the connection type. Database connections take connectionString and password. SnowflakeEngine and DatabricksEngine take engineType, databaseName and schemaName, with the credentials kept on the processing engine. PythonScript takes preExecutionScript, postExecutionScript and parameters.
  • Optional: permissions, schemaMetadata, customMetadataSources, profileSets, customProfiles.
{
  "config": {
    "name": "Wholesale Distribution System",
    "description": "Order, customer and stock data from the distribution system on SQL Server.",
    "referenceKey": "wide_world_importers",
    "projectIds": [2],
    "connectionType": "SqlServer",
    "connectionEngineId": 1,
    "connectionDataSourceTemplateId": 1,
    "connectionConfiguration": {
      "connectionString": "Server=your-sql-server;Database=WideWorldImporters;User Id=validatar_reader;Password=[[PASSWORD]];",
      "password": "<password>"
    }
  }
}

Warning: A password in connectionConfiguration passes through your AI tool and stays in its history. Use a read-only database account, or a connection that needs no password in the call, such as a processing engine connection.

Creating a data source does not ingest its catalog. Ingest the schema metadata in the app before you build tests on it.

update_data_source

Changes a data source. Needs Manage Connections and Schema Metadata on that data source.

Parameter Type Required Description
data_source_id integer Yes The data source
config object Yes Same shape as create_data_source

The tool writes name and description every time, so send the current values even when they do not change. Leave out connectionConfiguration to keep the current connection; when you send it, also send connectionType and connectionEngineId. Start from the current settings (describe on the data source) and change only what you mean to.

update_custom_metadata

Sets custom field values on an object. For data sources, schemas, tables and columns it needs Edit Metadata on the data source; for projects, tests, jobs and labels, membership in the project.

Parameter Type Required Description
object_type string Yes DataSource, Schema, Table, Column, Project, Test, Job or Label
object_id integer Yes The object's ID
field_values object Yes New values keyed by field reference key (see Custom field values)
{
  "object_type": "Table",
  "object_id": 4127,
  "field_values": {
    "business_owner": { "values": ["Sales Operations"] }
  }
}

create_folder

Creates a folder inside a test or job folder of a project.

Parameter Type Required Description
project_id integer Yes The project
parent_folder_id integer Yes The parent folder. For the top level, use the project's root_test_folder_id or root_job_folder_id from list.
name string Yes The new folder's name
{ "project_id": 2, "parent_folder_id": 41, "name": "Orders" }

rename_folder

Renames a folder. The top-level Tests and Jobs folders cannot be renamed.

Parameter Type Required Description
project_id integer Yes The project that holds the folder
folder_id integer Yes The folder
name string Yes The new name

move_folder

Moves a folder, with everything in it, under another folder in the same project.

Parameter Type Required Description
project_id integer Yes The project that holds the folder
folder_id integer Yes The folder to move
parent_folder_id integer Yes The new parent folder

delete_folder

Deletes a folder, its subfolders and every test or job inside them. Job steps that run the deleted folders, tests or jobs are removed from their jobs. The top-level Tests and Jobs folders cannot be deleted. You can undo the deletion.

Parameter Type Required Description
project_id integer Yes The project that holds the folder
folder_id integer Yes The folder to delete
delete_child_tests boolean Yes true also deletes the child tests of template tests in the folder, wherever those child tests were materialized. false leaves child tests that live outside the folder in place.

create_project

Creates a project. Needs Global Admin or Security Admin.

Parameter Type Required Description
config object Yes name (required), description, dataSourceIds, permissions, customFields, certifyCustomFieldValues

Each permission is {"type": "User" or "Group", "name": ..., "roles": [...]} with roles from Admin, CreateTests, CreateJobs, Export, Import and LabelManager, or roleSet set to the name of a permission set in place of roles.

{
  "config": {
    "name": "Warehouse Reconciliation",
    "description": "Wholesale Distribution System against its copy in the Enterprise Data Warehouse.",
    "dataSourceIds": [3, 5],
    "permissions": [
      { "type": "Group", "name": "Data Engineering", "roles": ["CreateTests", "CreateJobs"] }
    ]
  }
}

update_project

Changes a project's name, description, data sources and permissions. Needs Global Admin or Security Admin. To change a project's custom fields, use update_custom_metadata with object_type Project.

Parameter Type Required Description
config object Yes projectId (required), name, description, dataSourceIds, permissions

The update replaces what you send:

  • name and description are written every time. Send the current values to keep them.
  • permissions replaces the project's whole permission list. Any user or group you leave out loses access, and an empty list removes every permission. Read the current list first with describe and its Permissions section.
  • dataSourceIds replaces the project's data sources. An empty list leaves them as they are.

execute_standard_tests

Runs standard tests, including child tests of template tests. Template tests themselves cannot be run.

Parameter Type Required Description
object_id_list list of integers Yes Standard test IDs

From the chat, one call can run several tests if they are all in the same project. From an MCP client, pass one test ID per call; a list of several returns missing test collection for multiple test execution. A single test runs to completion before the tool returns. The result gives result_object_type ProjectResults, result_object_id (the run's batch ID) and result_object_url, a link to the results page.

execute_data_source_script

Runs a SQL script (or a Python script on a Python data source) and returns the rows. Needs Browse Metadata & Data Profiling on the data source.

Parameter Type Required Description
data_source_id integer Yes The data source
script string Yes The SQL or Python script
timeout_seconds integer No How long to wait for the script before giving up
max_rows integer No Most rows to return. Default 100. The caller can ask for more; there is no fixed upper limit.
{
  "data_source_id": 3,
  "script": "SELECT TOP 10\n    OrderID,\n    CustomerID\nFROM Sales.Orders\nORDER BY OrderID DESC",
  "max_rows": 10
}

The rows the script returns go back to the AI model. When data source masking is enabled, a script on a Snowflake data source runs as the data source's preview role, the same role on-screen previews use.

revert_action

Undoes a change made by one of the twelve undoable tools.

Parameter Type Required Description
action_key string Yes The revert_action_key from the original tool's result
comment string Yes Why you are undoing it
reason string Yes AiDidNotDoWhatWasRequested, ChangeNoLongerDesired, Testing or Other

Object types

describe, list and the quick test tools take these values in object_type.

Value Where it applies
Home Parent for list (ID 0) of Projects and Reports
Catalog Parent for list (ID 0) of DataSources
DataSource, Schema describe, list
Table, Column describe, list, list_quick_tests, describe_quick_test, create_quick_test
Project, Folder describe, list
Test, Job describe
ProjectResults Returned by execute_standard_tests. The ID is the run's batch ID.
Report, GlobalSettings, Marketplace, UserProfile Returned by convert_url_to_key for those pages
ProjectSchedules, ProjectSettings, Label Page types in the app. No tool takes them in object_type.
Unknown Returned by convert_url_to_key when it cannot match the URL

The custom metadata tools use their own list: DataSource, Schema, Table, Column, Project, Test, Job and Label.

Custom field values

update_custom_metadata and create_quick_test take custom field values in one format. Each key is the field's reference key, as list_custom_metadata_options returns it, not its display name. Each value is a list, even for a single-value field.

{
  "business_owner": { "values": ["Sales Operations"] },
  "data_domains": { "values": ["Orders", "Customers"] }
}

Related