List relationships
list_relationshipsList relationships so you can inspect the real join graph before editing it. A relationship runs between two addresses — an entity and a path on each side — and the two ends may be in different datasources and answer in different shapes; a foreign key is one instance of that. Lists across all datasources by default; pass 'datasource' to scope to a single datasource, and a relationship that spans two appears on both. Each end carries its datasource_id/datasource_name. Returns semantic relationship_type separately from provenance (source, last_edit_source, effective_source).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_relationships"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Optional relationship type filter: 'fk', 'inferred', 'manual', or 'review'. | |
| entity | No | Optional exact entity name filter. Matches either end of the relationship. | |
| datasource | No | Optional datasource ID to scope the listing to a single datasource. Omit to list relationships across all datasources. A datasource that has not finished setup is refused with datasource_not_ready. |