database_graph_traverse
Starts at a row (start.table and start.pk) or at the best matches for some words (start.table and start.query, on a table with semantic search) and follows relationships outwards, returning every row reached with the path that reached it. It runs as one recursive SQL statement under the Product's own role, with a 5 second timeout, cycles cut, at most 4 hops, at most 50 neighbours per row per hop and at most 500 rows, so it cannot run away with a shared database. Read-only.
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>",
"start": "<start>"
},
"name": "database_graph_traverse"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start | Yes | ||
| steps | No | A fixed path, one entry per hop, e.g. [{"via": "fk:orders_customer_id_fkey", "dir": "in"}]. via is fk:<constraint>, vfk:<id> or edge:<label>, as database_graph_schema lists them. Omit to follow every relationship up to max_depth. | |
| fanout | No | Most neighbours taken from any one row at any one hop. At most 50. | |
| max_depth | No | Hops to follow when steps is omitted. At most 4. | |
| max_nodes | No | Most rows returned in total. At most 500. | |
| productId | Yes | Product identifier, e.g. prd_7k2m9x4qw1nv8bz3ct6d. | |
| databaseId | Yes | Database identifier, from product_get or database_get. |