Skip to main content
Glama

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scopeNoDefaults 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
acyclicNoENFORCED. 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.
inverseNoAdvisory only. Name of the inverse edge.
symmetricNoAdvisory only. Whether the edge reads the same both ways.
descriptionNo
relationship_typeYesIdentifier-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_typesNoAdvisory only. Not enforced at write time.
target_entity_typesNoAdvisory only. Not enforced at write time.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.25.0

TDQS

Score is being calculated.