Add Relationship to Semantic Model
add_relationship_to_semantic_modelDefine relationships between tables in a Microsoft Fabric semantic model to enable accurate data analysis and reporting by connecting related data points.
Instructions
Add a relationship between two tables in an existing semantic model.
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": {
"workspace_name": "<workspace_name>",
"semantic_model_name": "<semantic_model_name>",
"from_table": "<from_table>",
"from_column": "<from_column>",
"to_table": "<to_table>",
"to_column": "<to_column>"
},
"name": "add_relationship_to_semantic_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace_name | Yes | ||
| semantic_model_name | Yes | ||
| from_table | Yes | ||
| from_column | Yes | ||
| to_table | Yes | ||
| to_column | Yes | ||
| cardinality | No | manyToOne | |
| cross_filter_direction | No | oneDirection | |
| is_active | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||