Update a relationship
update_relationshipUpdate an existing relationship in place without changing its semantic relationship_type. Confirmation measures the join and derives cardinality unless either column's values are withheld; then no join runs and a stated cardinality is an unvalidated assertion. Use rejected=true with rejection_reason for an explicit negative.
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": {
"relationship_id": "<relationship_id>"
},
"name": "update_relationship"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rejected | No | Record a considered rejection. True requires rejection_reason; false confirms using measured join statistics. | |
| cardinality | No | Optional cardinality assertion (1:1 or N:1), which must match the measured result; N:1 is also accepted where only measured uniqueness, not a declared key, makes it 1:1. | |
| is_approved | No | Optional approval state to persist on the relationship. | |
| relationship_id | Yes | Relationship UUID to update | |
| rejection_reason | No | Reason for rejecting the candidate; requires an explicit rejection. |