database_graph_infer
Proposes edges between rows of two tables that no column connects. For each row of from_table it takes the closest rows of to_table by meaning (both tables need semantic search) and asks a model, through llm11, whether each pair is really related and how. Every suggestion is stored as a proposed edge with its confidence and reason, which search and traversal ignore until somebody approves it with database_edge_upsert. Nothing is applied on its own. The chosen columns of the rows considered are sent to llm11; the dry run says how many rows and roughly what it costs.
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": {
"productId": "<productId>",
"databaseId": "<databaseId>",
"from_table": "<from_table>",
"to_table": "<to_table>",
"label": "<label>"
},
"name": "database_graph_infer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | The relationship to look for, e.g. mentions. | |
| limit | No | Rows of from_table to consider. | |
| confirm | No | Required for destructive operations. Without it a destructive call returns its plan and refuses, exactly as dry_run would. | |
| dry_run | No | Return the plan without applying it: the resources it would create, change or destroy, and an estimated monthly cost. Free, and has no side effects. Call this before any change you have not made before. | |
| to_table | Yes | A table in the database, as schema.table or just table (public is assumed). It needs a single-column primary key. | |
| productId | Yes | Product identifier, e.g. prd_7k2m9x4qw1nv8bz3ct6d. | |
| databaseId | Yes | Database identifier, from product_get or database_get. | |
| from_table | Yes | A table in the database, as schema.table or just table (public is assumed). It needs a single-column primary key. | |
| instruction | No | What counts as related, in a sentence. Optional. | |
| min_confidence | No | ||
| idempotency_key | No | Replaying the same key returns the original result instead of acting twice. Strongly recommended for anything that creates a resource or spends money. |