# List Relationship Types

`lawmatics_list-relationship-types` · Lawmatics MCP tool · Relationship Types

List relationship types from Lawmatics with optional pagination and sorting. Rows carry name, repeatability, and a `relationships` envelope of to-one {id,type} pointers (creating user); use get-relationship-type for the full envelope including to-many custom fields.

## Input

- **page** `integer` (> 0) — Page number (1-based)
- **sortBy** `string` (enum: "id", "created_at", "updated_at", "name") — Column to sort by
- **sortOrder** `string` (enum: "asc", "desc") — Sort direction; ascending or descending

## Output

- **relationshipTypes** `array` (required) — Relationship types on this page of results
  - **[]** `object`
    - **id** `string` (required) — Lawmatics relationship type ID
    - **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 if not reported
    - **relationships** `object` (required) — To-one JSON:API relationship pointers as {id,type} stubs. Not materialized — follow a pointer by calling that resource's own tool. List rows carry to-one pointers only; use get-relationship-type for the full envelope incl. to-many (custom fields).
      - **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
- **pagination** `object | null` (required) — Pagination metadata from the API response; null when the endpoint returns no meta envelope
  - **totalPages** `number | null` (required) — Total number of pages available; null if not reported
  - **limitPerPage** `number | null` (required) — Maximum relationship types returned per page; null if not reported
  - **totalEntries** `number | null` (required) — Total number of relationship types across all pages; null if not reported
