# Create Collection

`lawmatics_create-collection` · Lawmatics MCP tool · Collections

Create a Collection in Lawmatics: a named container whose custom field definitions form the schema of its items. Provide the collection name and optionally the custom fields (list and multi_picklist types take selectable options).

## Input

- **name** `string` (required) — Name of the collection to create
- **customFields** `array` — Custom field definitions for the schema of this collection's items
  - **[]** `object`
    - **name** `string` (required) — Display name of the custom field
    - **fieldType** `string` (required, enum: "integer", "boolean", "string", "text", "currency", "date", "time", "datetime", "list", "multi_picklist") — Type of the field
    - **listOptions** `array` — Selectable options; only for list and multi_picklist field types
      - **[]** `object`
        - **name** `string` (required) — Display name of the selectable option

## Output

- **id** `string` (required) — Unique ID of the created 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) — Server-assigned 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) — Server-assigned 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
