lawmatics-mcp

v1.0.0
io.github.oktopeak/lawmatics-mcp Checked 3 days ago Published 3 months ago

Connect Claude to Lawmatics: matters, contacts, pipelines, tasks, forms, custom fields, invoices.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list-matters

List matters (leads/prospects/clients) with optional filter, sort, and pagination. Matter status is 'pnc' (potential new client), 'hired', or 'lost'. Useful filters: status, practice_area_id, stage_id, source_id, sub_status_id, created_at, estimated_value_cents, actual_value_cents. For pipeline reporting, combine filter_by with fields and fetch_all, then aggregate the result.

ParameterTypeDescription
fetch_allbooleanFollow pagination and return every record (capped at 1,000). The response says complete=false if truncated.
fieldsstringComma-separated attributes to return, or 'all' for everything. Add 'custom_fields' to include custom field values.
filter_bystringAttribute to filter on. IMPORTANT: the Lawmatics API supports only ONE filter per request. Association filters use the _id suffix, e.g. practice_area_id, stage_id, source_id, matter_id, contact_id.
filter_onstring | numberValue to filter for. Required with filter_by unless filter_with is null/not_null.
filter_withstringFilter operator: =, !=, <, <=, >, >=, like, ilike (default: ilike for text — add % wildcards for fuzzy match, e.g. %smith%), or presence checks: null, not_null. Currency values are in cents.
pageintegerPage number (Lawmatics returns a fixed 25 records per page).
sort_bystringAttribute to sort by, e.g. 'created_at', 'updated_at', 'id'. Default: id, newest first.
sort_orderstring

get-matter

Get full details for a single matter by ID, including custom fields and related records (contact, stage, practice area, tasks, notes, events, invoices as {id, type} references).

ParameterTypeDescription
matter_id *stringThe Lawmatics matter (prospect) ID.
fieldsstringComma-separated attributes, or 'all' (default: all).

find-matter

Find a single matter by exact email, phone, or name. Returns the best match or not_found. For fuzzy or multi-result searches use list-matters with filter_with: 'ilike' and % wildcards.

ParameterTypeDescription
by *stringWhich finder to use.
value *stringThe email address, phone number, or full name to look up.

create-matter

Create a new matter (lead). By default this also creates a contact from first/last name. Pass contact_id to attach an existing contact, or match_contact_by to reuse a contact matched on email/name/phone (falls back to creating one). Pass company_id or company_name for a company matter. Tags that don't exist yet are created automatically.

ParameterTypeDescription
first_name *stringClient first name.
last_name *stringClient last name.
case_blurbstringShort case description.
case_titlestring
company_idintegerCreate as a company matter for this company.
company_namestringCreate as a company matter, matching the company by name.
contact_idintegerAttach an existing contact. Overrides match_contact_by.
emailstring
match_contact_bystringReuse an existing contact matched on this attribute instead of creating a duplicate.
notesarrayNotes to create with the matter.
phonestring
practice_area_idintegerFrom list-practice-areas.
sub_status_idintegerFrom list-sub-statuses.
tagsarrayTag names to attach (auto-created if missing).

update-matter

Update a matter. Only the provided fields change. Note: the public API has no documented way to move a matter between pipeline stages — sub_status_id is the closest control.

ParameterTypeDescription
matter_id *stringThe matter (prospect) ID to update.
assigned_staff_idsarrayUser IDs from list-users.
case_blurbstring
case_titlestring
emailstring
first_namestring
last_namestring
notesarrayAdditional notes to add.
phonestring
practice_area_idinteger
sub_status_idinteger
tagsarray

list-contacts

List contacts (people) with optional filter, sort, and pagination. A contact is the person; the matter (prospect) is the case/lead attached to them.

ParameterTypeDescription
fetch_allbooleanFollow pagination and return every record (capped at 1,000). The response says complete=false if truncated.
fieldsstringComma-separated attributes to return, or 'all' for everything. Add 'custom_fields' to include custom field values.
filter_bystringAttribute to filter on. IMPORTANT: the Lawmatics API supports only ONE filter per request. Association filters use the _id suffix, e.g. practice_area_id, stage_id, source_id, matter_id, contact_id.
filter_onstring | numberValue to filter for. Required with filter_by unless filter_with is null/not_null.
filter_withstringFilter operator: =, !=, <, <=, >, >=, like, ilike (default: ilike for text — add % wildcards for fuzzy match, e.g. %smith%), or presence checks: null, not_null. Currency values are in cents.
pageintegerPage number (Lawmatics returns a fixed 25 records per page).
sort_bystringAttribute to sort by, e.g. 'created_at', 'updated_at', 'id'. Default: id, newest first.
sort_orderstring

get-contact

Get full details for a single contact by ID, including custom fields.

ParameterTypeDescription
contact_id *stringThe Lawmatics contact ID.
fieldsstringComma-separated attributes, or 'all' (default: all).

find-contact

Find a single contact by exact email, phone, or name. Returns the best match or not_found. For fuzzy searches use list-contacts with filter_with: 'ilike' and % wildcards.

ParameterTypeDescription
by *stringWhich finder to use.
value *stringThe email address, phone number, or full name to look up.

create-contact

Create a new contact (person) without a matter. To create a lead with a case, use create-matter.

ParameterTypeDescription
first_name *string
last_name *string
emailstring
notesarrayNotes to create with the contact.
phonestring

update-contact

Update a contact. Only the provided fields change.

ParameterTypeDescription
contact_id *stringThe contact ID to update.
emailstring
first_namestring
last_namestring
phonestring

list-companies

List companies with optional filter, sort, and pagination.

ParameterTypeDescription
fetch_allbooleanFollow pagination and return every record (capped at 1,000). The response says complete=false if truncated.
fieldsstringComma-separated attributes to return, or 'all' for everything. Add 'custom_fields' to include custom field values.
filter_bystringAttribute to filter on. IMPORTANT: the Lawmatics API supports only ONE filter per request. Association filters use the _id suffix, e.g. practice_area_id, stage_id, source_id, matter_id, contact_id.
filter_onstring | numberValue to filter for. Required with filter_by unless filter_with is null/not_null.
filter_withstringFilter operator: =, !=, <, <=, >, >=, like, ilike (default: ilike for text — add % wildcards for fuzzy match, e.g. %smith%), or presence checks: null, not_null. Currency values are in cents.
pageintegerPage number (Lawmatics returns a fixed 25 records per page).
sort_bystringAttribute to sort by, e.g. 'created_at', 'updated_at', 'id'. Default: id, newest first.
sort_orderstring

get-company

Get full details for a single company by ID.

ParameterTypeDescription
company_id *stringThe Lawmatics company ID.
fieldsstringComma-separated attributes, or 'all' (default: all).

find-company

Find a single company by exact email, phone, or name. Returns the best match or not_found.

ParameterTypeDescription
by *stringWhich finder to use.
value *stringThe email address, phone number, or company name to look up.

list-pipelines

List the firm's pipelines with matter counts, estimated value, and stage references. Use with list-stages to build a full pipeline board view.

ParameterTypeDescription
fetch_allbooleanFollow pagination and return every record (capped at 1,000). The response says complete=false if truncated.
fieldsstringComma-separated attributes to return, or 'all' for everything. Add 'custom_fields' to include custom field values.
filter_bystringAttribute to filter on. IMPORTANT: the Lawmatics API supports only ONE filter per request. Association filters use the _id suffix, e.g. practice_area_id, stage_id, source_id, matter_id, contact_id.
filter_onstring | numberValue to filter for. Required with filter_by unless filter_with is null/not_null.
filter_withstringFilter operator: =, !=, <, <=, >, >=, like, ilike (default: ilike for text — add % wildcards for fuzzy match, e.g. %smith%), or presence checks: null, not_null. Currency values are in cents.
pageintegerPage number (Lawmatics returns a fixed 25 records per page).
sort_bystringAttribute to sort by, e.g. 'created_at', 'updated_at', 'id'. Default: id, newest first.
sort_orderstring

list-stages

List all pipeline stages. Each stage references its pipeline. To count matters per stage, use list-matters with filter_by: 'stage_id'.

ParameterTypeDescription
fetch_allbooleanFollow pagination and return every record (capped at 1,000). The response says complete=false if truncated.
fieldsstringComma-separated attributes to return, or 'all' for everything. Add 'custom_fields' to include custom field values.
filter_bystringAttribute to filter on. IMPORTANT: the Lawmatics API supports only ONE filter per request. Association filters use the _id suffix, e.g. practice_area_id, stage_id, source_id, matter_id, contact_id.
filter_onstring | numberValue to filter for. Required with filter_by unless filter_with is null/not_null.
filter_withstringFilter operator: =, !=, <, <=, >, >=, like, ilike (default: ilike for text — add % wildcards for fuzzy match, e.g. %smith%), or presence checks: null, not_null. Currency values are in cents.
pageintegerPage number (Lawmatics returns a fixed 25 records per page).
sort_bystringAttribute to sort by, e.g. 'created_at', 'updated_at', 'id'. Default: id, newest first.
sort_orderstring

list-practice-areas

List the firm's practice areas (id, name, color).

ParameterTypeDescription
fetch_allbooleanFollow pagination and return every record (capped at 1,000). The response says complete=false if truncated.
fieldsstringComma-separated attributes to return, or 'all' for everything. Add 'custom_fields' to include custom field values.
filter_bystringAttribute to filter on. IMPORTANT: the Lawmatics API supports only ONE filter per request. Association filters use the _id suffix, e.g. practice_area_id, stage_id, source_id, matter_id, contact_id.
filter_onstring | numberValue to filter for. Required with filter_by unless filter_with is null/not_null.
filter_withstringFilter operator: =, !=, <, <=, >, >=, like, ilike (default: ilike for text — add % wildcards for fuzzy match, e.g. %smith%), or presence checks: null, not_null. Currency values are in cents.
pageintegerPage number (Lawmatics returns a fixed 25 records per page).
sort_bystringAttribute to sort by, e.g. 'created_at', 'updated_at', 'id'. Default: id, newest first.
sort_orderstring

list-sources

List marketing sources (where leads come from: Google, referrals, etc.). For source ROI reporting, use list-matters with filter_by: 'source_id'.

ParameterTypeDescription
fetch_allbooleanFollow pagination and return every record (capped at 1,000). The response says complete=false if truncated.
fieldsstringComma-separated attributes to return, or 'all' for everything. Add 'custom_fields' to include custom field values.
filter_bystringAttribute to filter on. IMPORTANT: the Lawmatics API supports only ONE filter per request. Association filters use the _id suffix, e.g. practice_area_id, stage_id, source_id, matter_id, contact_id.
filter_onstring | numberValue to filter for. Required with filter_by unless filter_with is null/not_null.
filter_withstringFilter operator: =, !=, <, <=, >, >=, like, ilike (default: ilike for text — add % wildcards for fuzzy match, e.g. %smith%), or presence checks: null, not_null. Currency values are in cents.
pageintegerPage number (Lawmatics returns a fixed 25 records per page).
sort_bystringAttribute to sort by, e.g. 'created_at', 'updated_at', 'id'. Default: id, newest first.
sort_orderstring

list-sub-statuses

List matter sub-statuses. Each belongs to a top-level status: pnc (potential new client), hired, or lost. Use the IDs with create-matter / update-matter.

ParameterTypeDescription
fetch_allbooleanFollow pagination and return every record (capped at 1,000). The response says complete=false if truncated.
fieldsstringComma-separated attributes to return, or 'all' for everything. Add 'custom_fields' to include custom field values.
filter_bystringAttribute to filter on. IMPORTANT: the Lawmatics API supports only ONE filter per request. Association filters use the _id suffix, e.g. practice_area_id, stage_id, source_id, matter_id, contact_id.
filter_onstring | numberValue to filter for. Required with filter_by unless filter_with is null/not_null.
filter_withstringFilter operator: =, !=, <, <=, >, >=, like, ilike (default: ilike for text — add % wildcards for fuzzy match, e.g. %smith%), or presence checks: null, not_null. Currency values are in cents.
pageintegerPage number (Lawmatics returns a fixed 25 records per page).
sort_bystringAttribute to sort by, e.g. 'created_at', 'updated_at', 'id'. Default: id, newest first.
sort_orderstring

list-users

List the firm's Lawmatics users (staff). Use the IDs for task/event assignment.

ParameterTypeDescription
fetch_allbooleanFollow pagination and return every record (capped at 1,000). The response says complete=false if truncated.
fieldsstringComma-separated attributes to return, or 'all' for everything. Add 'custom_fields' to include custom field values.
filter_bystringAttribute to filter on. IMPORTANT: the Lawmatics API supports only ONE filter per request. Association filters use the _id suffix, e.g. practice_area_id, stage_id, source_id, matter_id, contact_id.
filter_onstring | numberValue to filter for. Required with filter_by unless filter_with is null/not_null.
filter_withstringFilter operator: =, !=, <, <=, >, >=, like, ilike (default: ilike for text — add % wildcards for fuzzy match, e.g. %smith%), or presence checks: null, not_null. Currency values are in cents.
pageintegerPage number (Lawmatics returns a fixed 25 records per page).
sort_bystringAttribute to sort by, e.g. 'created_at', 'updated_at', 'id'. Default: id, newest first.
sort_orderstring

get-current-user

Get the user the access token belongs to. Also the cheapest way to verify the connection works.

list-tasks

List tasks with optional filter, sort, and pagination. Useful filters: done (true/false), due_date (with <, >= operators), priority, matter_id, contact_id.

ParameterTypeDescription
fetch_allbooleanFollow pagination and return every record (capped at 1,000). The response says complete=false if truncated.
fieldsstringComma-separated attributes to return, or 'all' for everything. Add 'custom_fields' to include custom field values.
filter_bystringAttribute to filter on. IMPORTANT: the Lawmatics API supports only ONE filter per request. Association filters use the _id suffix, e.g. practice_area_id, stage_id, source_id, matter_id, contact_id.
filter_onstring | numberValue to filter for. Required with filter_by unless filter_with is null/not_null.
filter_withstringFilter operator: =, !=, <, <=, >, >=, like, ilike (default: ilike for text — add % wildcards for fuzzy match, e.g. %smith%), or presence checks: null, not_null. Currency values are in cents.
pageintegerPage number (Lawmatics returns a fixed 25 records per page).
sort_bystringAttribute to sort by, e.g. 'created_at', 'updated_at', 'id'. Default: id, newest first.
sort_orderstring

create-task

Create a task, optionally attached to a matter/contact/company and assigned to users.

ParameterTypeDescription
name *stringTask name.
assigned_by_idinteger
descriptionstring
doneboolean
due_datestringDue date, ISO 8601 (e.g. 2026-08-15 or 2026-08-15T17:00:00-07:00).
prioritystringDefault: low.
taskable_idintegerID of the record the task is attached to.
taskable_typestringWhat the task is attached to. Use 'Prospect' for a matter.
user_idsarrayUser IDs to assign (from list-users).

update-task

Update a task — e.g. mark it done, change the due date, or reassign it.

ParameterTypeDescription
task_id *stringThe task ID to update.
descriptionstring
doneboolean
due_datestringISO 8601 date or datetime.
namestring
prioritystring
user_idsarray

list-events

List events (appointments) with optional filter, sort, and pagination. For a date range, filter_by: 'start_date' with filter_with: '>=' (one filter per request; sort by start_date and paginate for windows).

ParameterTypeDescription
fetch_allbooleanFollow pagination and return every record (capped at 1,000). The response says complete=false if truncated.
fieldsstringComma-separated attributes to return, or 'all' for everything. Add 'custom_fields' to include custom field values.
filter_bystringAttribute to filter on. IMPORTANT: the Lawmatics API supports only ONE filter per request. Association filters use the _id suffix, e.g. practice_area_id, stage_id, source_id, matter_id, contact_id.
filter_onstring | numberValue to filter for. Required with filter_by unless filter_with is null/not_null.
filter_withstringFilter operator: =, !=, <, <=, >, >=, like, ilike (default: ilike for text — add % wildcards for fuzzy match, e.g. %smith%), or presence checks: null, not_null. Currency values are in cents.
pageintegerPage number (Lawmatics returns a fixed 25 records per page).
sort_bystringAttribute to sort by, e.g. 'created_at', 'updated_at', 'id'. Default: id, newest first.
sort_orderstring

create-event

Create an event (appointment), optionally attached to a matter or contact and with user hosts. Set send_invites: false to avoid emailing attendees.

ParameterTypeDescription
end_date *stringEnd, ISO 8601 with offset.
name *stringEvent name, e.g. 'Initial Consultation'.
start_date *stringStart, ISO 8601 with offset, e.g. 2026-08-15T15:00:00-07:00.
all_dayboolean
descriptionstring
event_type_idinteger
eventable_idinteger
eventable_typestringWhat the event is attached to. Use 'Prospect' for a matter.
location_idinteger
reminder_delay_lengthinteger
reminder_typestring
send_invitesbooleanDefault true — Lawmatics emails invites unless set to false.
time_zonestringIANA time zone, e.g. America/New_York.
user_idsarrayHost user IDs (from list-users).

list-notes

List notes with optional filter, sort, and pagination. To get one matter's notes, use filter_by: 'matter_id' with the matter ID as filter_on.

ParameterTypeDescription
fetch_allbooleanFollow pagination and return every record (capped at 1,000). The response says complete=false if truncated.
fieldsstringComma-separated attributes to return, or 'all' for everything. Add 'custom_fields' to include custom field values.
filter_bystringAttribute to filter on. IMPORTANT: the Lawmatics API supports only ONE filter per request. Association filters use the _id suffix, e.g. practice_area_id, stage_id, source_id, matter_id, contact_id.
filter_onstring | numberValue to filter for. Required with filter_by unless filter_with is null/not_null.
filter_withstringFilter operator: =, !=, <, <=, >, >=, like, ilike (default: ilike for text — add % wildcards for fuzzy match, e.g. %smith%), or presence checks: null, not_null. Currency values are in cents.
pageintegerPage number (Lawmatics returns a fixed 25 records per page).
sort_bystringAttribute to sort by, e.g. 'created_at', 'updated_at', 'id'. Default: id, newest first.
sort_orderstring

create-note

Create a note on a matter, contact, or company.

ParameterTypeDescription
body *stringNote body text.
name *stringNote title.
notable_id *integerID of the record the note is attached to.
notable_type *stringWhat the note is attached to. Use 'Prospect' for a matter.

list-activities

List timeline activities (audit trail of everything that happened: notes, emails, stage moves...). The Lawmatics API REQUIRES a filter here — pass filter_by ('matter_id' or 'contact_id') and filter_on.

ParameterTypeDescription
filter_by *stringRequired by the API.
filter_on *stringThe matter or contact ID.
fetch_allbooleanFollow pagination (capped at 1,000 records).
pageinteger

list-tags

List the firm's tags.

ParameterTypeDescription
fetch_allbooleanFollow pagination and return every record (capped at 1,000). The response says complete=false if truncated.
fieldsstringComma-separated attributes to return, or 'all' for everything. Add 'custom_fields' to include custom field values.
filter_bystringAttribute to filter on. IMPORTANT: the Lawmatics API supports only ONE filter per request. Association filters use the _id suffix, e.g. practice_area_id, stage_id, source_id, matter_id, contact_id.
filter_onstring | numberValue to filter for. Required with filter_by unless filter_with is null/not_null.
filter_withstringFilter operator: =, !=, <, <=, >, >=, like, ilike (default: ilike for text — add % wildcards for fuzzy match, e.g. %smith%), or presence checks: null, not_null. Currency values are in cents.
pageintegerPage number (Lawmatics returns a fixed 25 records per page).
sort_bystringAttribute to sort by, e.g. 'created_at', 'updated_at', 'id'. Default: id, newest first.
sort_orderstring

attach-tags

Attach tags to a matter, contact, company, or task. Tags that don't exist yet are created.

ParameterTypeDescription
tags *arrayTag names. Nonexistent tags are created automatically on attach.
target_id *integerThe record's ID.
target_type *stringWhat kind of record to tag.

detach-tags

Detach tags from a matter, contact, company, or task.

ParameterTypeDescription
tags *arrayTag names. Nonexistent tags are created automatically on attach.
target_id *integerThe record's ID.
target_type *stringWhat kind of record to tag.

list-custom-fields

List the firm's custom field definitions (id, name, field_type, owner type, list options). Read a record's custom field VALUES by adding 'custom_fields' to the fields parameter of get-matter / get-contact / list-matters.

ParameterTypeDescription
fetch_allbooleanFollow pagination and return every record (capped at 1,000). The response says complete=false if truncated.
fieldsstringComma-separated attributes to return, or 'all' for everything. Add 'custom_fields' to include custom field values.
filter_bystringAttribute to filter on. IMPORTANT: the Lawmatics API supports only ONE filter per request. Association filters use the _id suffix, e.g. practice_area_id, stage_id, source_id, matter_id, contact_id.
filter_onstring | numberValue to filter for. Required with filter_by unless filter_with is null/not_null.
filter_withstringFilter operator: =, !=, <, <=, >, >=, like, ilike (default: ilike for text — add % wildcards for fuzzy match, e.g. %smith%), or presence checks: null, not_null. Currency values are in cents.
pageintegerPage number (Lawmatics returns a fixed 25 records per page).
sort_bystringAttribute to sort by, e.g. 'created_at', 'updated_at', 'id'. Default: id, newest first.
sort_orderstring

list-forms

List the firm's custom forms (intake forms). Form IDs are UUIDs. Use get-form to see a form's field structure.

ParameterTypeDescription
fetch_allbooleanFollow pagination and return every record (capped at 1,000). The response says complete=false if truncated.
fieldsstringComma-separated attributes to return, or 'all' for everything. Add 'custom_fields' to include custom field values.
filter_bystringAttribute to filter on. IMPORTANT: the Lawmatics API supports only ONE filter per request. Association filters use the _id suffix, e.g. practice_area_id, stage_id, source_id, matter_id, contact_id.
filter_onstring | numberValue to filter for. Required with filter_by unless filter_with is null/not_null.
filter_withstringFilter operator: =, !=, <, <=, >, >=, like, ilike (default: ilike for text — add % wildcards for fuzzy match, e.g. %smith%), or presence checks: null, not_null. Currency values are in cents.
pageintegerPage number (Lawmatics returns a fixed 25 records per page).
sort_bystringAttribute to sort by, e.g. 'created_at', 'updated_at', 'id'. Default: id, newest first.
sort_orderstring

get-form

Get one custom form including its field layout (field IDs, labels, types, required flags).

ParameterTypeDescription
form_uuid *stringThe form's UUID (from list-forms).

get-form-entries

List submissions for a custom form, each with label/value pairs and the matter it created.

ParameterTypeDescription
form_uuid *stringThe form's UUID (from list-forms).
fetch_allbooleanFollow pagination (capped at 1,000 records).
pageinteger

submit-form

Submit an entry to a custom form — creates a matter/contact and fires the form's automations, exactly like a website submission. Standard keys: first_name, last_name, email, phone. Custom fields use the key form 'custom_field_<id>' (IDs from get-form or list-custom-fields). utm_source/utm_campaign/utm_medium/utm_term are also accepted.

ParameterTypeDescription
data *objectField values keyed by field ID, e.g. {"first_name": "Jane", "custom_field_2263": "yes"}.
form_uuid *stringThe form's UUID (from list-forms).

list-invoices

List invoices (read-only in the Lawmatics API). Amounts are integer cents. Useful filters: status, due_at, matter_id. Fields include amount_cents, amount_paid_cents, outstanding_amount_cents, due_at, pdf_url.

ParameterTypeDescription
fetch_allbooleanFollow pagination and return every record (capped at 1,000). The response says complete=false if truncated.
fieldsstringComma-separated attributes to return, or 'all' for everything. Add 'custom_fields' to include custom field values.
filter_bystringAttribute to filter on. IMPORTANT: the Lawmatics API supports only ONE filter per request. Association filters use the _id suffix, e.g. practice_area_id, stage_id, source_id, matter_id, contact_id.
filter_onstring | numberValue to filter for. Required with filter_by unless filter_with is null/not_null.
filter_withstringFilter operator: =, !=, <, <=, >, >=, like, ilike (default: ilike for text — add % wildcards for fuzzy match, e.g. %smith%), or presence checks: null, not_null. Currency values are in cents.
pageintegerPage number (Lawmatics returns a fixed 25 records per page).
sort_bystringAttribute to sort by, e.g. 'created_at', 'updated_at', 'id'. Default: id, newest first.
sort_orderstring