create_link
Declare a link: the columns two tables join on. from_columns (on table_id) pair by position with to_columns (on to_table_id); several pairs are ONE composite key (one call per independent link). Pair order and table order do not matter; declaring it again answers already_exists. Columns must exist with joinable types (same type, or a string against a list of strings on a one-column link); tables may be empty. Once both hold rows, audit_link measures it. Declare only joins you know are real, checked with run_sql first (key unique, values present on both sides): run_sql and the next agent trust them. Needs edit access to one table (a catalog table needs it on the other side), both inside this connection's organization.
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": {
"table_id": "<table_id>",
"to_table_id": "<to_table_id>",
"from_columns": "<from_columns>",
"to_columns": "<to_columns>"
},
"name": "create_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table_id | Yes | One side of the link. | |
| to_columns | Yes | Column ids on `to_table_id`, paired by position with `from_columns`. The order of the pairs does not matter. | |
| to_table_id | Yes | The other side, or the same id again for a self-link on other columns. | |
| from_columns | Yes | Column ids on `table_id`. Several make one composite key, joined on all of them at once. |