# Create Relationship Type

`lawmatics_create-relationship-type` · Lawmatics MCP tool · Relationship Types

Create a relationship type in Lawmatics. The response includes a `relationships` envelope of {id,type} pointers to related records (creating user, custom fields).

## Input

- **name** `string` (required) — Relationship type name (e.g. Spouse, Child, Parent)
- **isRepeatable** `boolean` — Whether this relationship type can be used multiple times on a matter

## Output

- **id** `string` (required) — Lawmatics relationship type ID of the newly created relationship type
- **name** `string` (required) — Relationship type name (e.g. Spouse, Child, Parent)
- **isRepeatable** `boolean | null` (required) — Whether this relationship type can be used multiple times on a matter; null when the create response omits it
- **createdAt** `string | null` (required) — When the relationship type was created, as an ISO 8601 timestamp; null when the create response omits it
- **updatedAt** `string | null` (required) — When the relationship type was last updated, as an ISO 8601 timestamp; null when the create response omits it
- **relationships** `object` (required) — JSON:API relationship pointers to related records as {id,type} stubs. Not materialized — follow a pointer by calling that resource's own get/find tool (e.g. type 'user' -> get-user, type 'custom_field' -> get-custom-field).
  - **createdBy** `object | null` (required) — Creating user pointer (type 'user'); null when unset or not reported
    - **id** `string` (required) — ID of the referenced Lawmatics record
    - **type** `string` (required) — JSON:API record class of the reference (e.g. "user", "contact", "prospect", "firm"); resolve it by calling that resource's own get/find tool — this pointer is not materialized
  - **customFields** `array` (required) — Custom field pointers (type 'custom_field') on this relationship type; empty if none
    - **[]** `object`
      - **id** `string` (required) — ID of the referenced Lawmatics record
      - **type** `string` (required) — JSON:API record class of the reference; resolve it by calling that resource's own tool
