# List Collections

`lawmatics_list-collections` · Lawmatics MCP tool · Collections

List Collections from Lawmatics with optional pagination, including each collection's custom field schema.

## Input

- **page** `integer` (> 0) — Page number (1-based)

## Output

- **collections** `array` (required) — Collections on this page of results
  - **[]** `object`
    - **id** `string` (required) — Unique ID of the collection
    - **name** `string` (required) — Name of the collection
    - **customFields** `array` (required) — Custom field definitions that make up the schema of this collection's items
      - **[]** `object`
        - **id** `string` (required) — Unique ID of the custom field definition
        - **name** `string` (required) — Display name of the custom field
        - **fieldType** `string` (required) — Type of the field (e.g. text, currency, list, multi_picklist, string, date)
        - **visibility** `string` (required) — Visibility setting of the field as reported by Lawmatics (e.g. "default")
        - **listOptions** `array` — Selectable options; present only for list and multi_picklist field types
          - **[]** `object`
            - **id** `string` (required) — Unique ID of the list option
            - **name** `string` (required) — Display name of the selectable option
        - **createdAt** `string` (required) — When the custom field was created, as an ISO 8601 timestamp
        - **updatedAt** `string` (required) — When the custom field was last updated, as an ISO 8601 timestamp
    - **createdAt** `string` (required) — When the collection was created, as an ISO 8601 timestamp
    - **updatedAt** `string` (required) — When the collection was last updated, as an ISO 8601 timestamp
- **pagination** `object` (required) — Pagination metadata derived from the API `meta` envelope
  - **totalPages** `number` (required) — Total number of pages available
  - **limitPerPage** `number` (required) — Maximum collections returned per page
  - **totalEntries** `number` (required) — Total number of collections across all pages
