database_graph_enable
Turns on relationships for a Product's Postgres. Foreign keys are read from the catalogue as they are, so there is nothing to import and no second copy of the data: the graph is the tables. Two additions live in the database's helm7 schema: virtual foreign keys, for columns that point at another table without a constraint (pass them in virtual_fks; calling again replaces the set), and an edges table for links that are not columns at all, written with database_edge_upsert. Free, and nothing is sent outside the database. The dry run lists foreign key columns that have no index, because traversing one of those scans the table.
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>"
},
"name": "database_graph_enable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| productId | Yes | Product identifier, e.g. prd_7k2m9x4qw1nv8bz3ct6d. | |
| databaseId | Yes | Database identifier, from product_get or database_get. | |
| virtual_fks | No | Column links without a constraint. Replaces the current set when given. | |
| 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. |