Scan database schema and profiles
scan_datasourceRefreshes a registered database's stored metadata by re-reading tables, columns, keys, column profiles, and value-verified inferred joins after schema changes or stale profiles.
Instructions
Re-read a registered database's tables, columns, declared keys, column profiles (samples, uniqueness, formats, small value sets), and name-inferred joins verified by value containment. Use after schema changes or to refresh stale profiles; use add_datasource for new databases and get_modeling_worklist to inspect unmodeled tables afterwards. Connects read-only to the database, preserves existing Terms, reviewed relationships, and SQL attributes, refreshes unreviewed inferred joins, and returns counts of newly discovered tables and columns.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "scan_datasource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tables | No | Tables and views to read, for very large schemas: case-insensitive globs such as ['SALES_*', 'HR.EMP*', '!*_LOG'] (* and ? wildcards, % works like *, _ is literal, schema.table when the pattern has a dot, ! excludes). Tables scanned earlier that fall outside the filter are kept, so a catalog can grow area by area. ['*'] reads everything. Default: the datasource's saved filter, else AUTO_ONTOLOGY_SCAN_TABLES, else all tables. Applies to this scan only. | |
| profile | No | Sample rows to profile columns and verify inferred joins. | |
| schemas | No | Limit this scan to these database schemas. | |
| datasource | No | Datasource name. Optional when only one datasource is registered. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||