base_tableAffinity
Identify tables that frequently co-occur in SQL queries to reveal natural JOIN relationships and data affinity patterns.
Instructions
Identify which tables in a database tend to co-occur together in the same SQL queries, revealing natural JOIN relationships and data affinity patterns. Use when the user asks which tables are queried together, what tables are related to a specific table, or what tables are commonly used in the same workflows. For access frequency, query counts, or per-user access statistics, use base_tableUsage instead.
Arguments: database_name - Database name table_name - Table or view name persist - If True, materializes result as a volatile table and returns table name
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"database_name": "<database_name>",
"table_name": "<table_name>"
},
"name": "base_tableAffinity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| persist | No | If True, materializes result as a volatile table and returns table name | |
| table_name | Yes | Table or view name | |
| database_name | Yes | Database name |