register_relationship_type
Register a relationship type after discovering the vocabulary with list_relationship_types. Requires an active grant with register_relationship_type and relationship_types permission; global scope additionally needs explicit global…
Instructions
Register a relationship type after discovering the vocabulary with list_relationship_types. Requires an active grant with register_relationship_type and relationship_types permission; global scope additionally needs explicit global permission. Defaults to user scope. Refresh cached tool definitions after registration, then write the edge and read it back.
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_type": "<relationship_type>"
},
"name": "register_relationship_type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Defaults to "user" — the safe branch. This deliberately inverts register_schema, whose user_specific defaults to false and whose default branch is therefore both the widest blast radius and the one that records no identity. | user |
| acyclic | No | ENFORCED. When true, create_relationship refuses an edge of this type that would close a loop among edges OF THIS TYPE within this tenant. Opt-in: a type whose semantics permit cycles should leave this unset. | |
| inverse | No | Advisory only. Name of the inverse edge. | |
| symmetric | No | Advisory only. Whether the edge reads the same both ways. | |
| description | No | ||
| relationship_type | Yes | Identifier-shaped name, 1-64 characters, matching ^[A-Za-z][A-Za-z0-9_]*$. Casing-agnostic. A new name that differs from an existing active type only by case is rejected; the pre-existing PART_OF/part_of and DEPENDS_ON/depends_on pairs are grandfathered. | |
| source_entity_types | No | Advisory only. Not enforced at write time. | |
| target_entity_types | No | Advisory only. Not enforced at write time. |