View as .md ↗
Lawmatics

Lawmatics

MCP server · Practice Management · lawmatics.com · 40 categories · 177 tools

Lawmatics is a legal CRM, client intake, and marketing automation platform for law firms. This integration exposes contacts, companies, matters, billing (invoices, transactions, expenses, time entries), tasks, documents, events, and marketing data as governed MCP tools, scoped per member by access level.

List Files (lawmatics_list-files)

List file metadata from Lawmatics with optional pagination, sorting, and a single-field filter. Rows carry a `relationships` envelope of to-one {id,type} pointers (documentable owner, folder, parent folder). To list the files belonging to one record (matter, contact, company, invoice, …), filter on documentable_id with that record's id. You can also filter on created_at / updated_at by date. Returns metadata only — use download-file to retrieve a file's contents.

Tool Input

pageinteger— Page number (1-based)(> 0)
filterobject— Optional single-field filter; one filter at a time
fieldstringrequired— Field to filter on: documentable_id (numeric id of the record — matter/prospect, contact, company, invoice, … — the file belongs to; the way to list one record's files), created_at, or updated_at (dates)(enum: "documentable_id", "created_at", "updated_at")
operatorstring— Comparison operator. Omit to use the Lawmatics per-field default (= for documentable_id). Use = for documentable_id and a range operator (e.g. >=) for created_at / updated_at(enum: "=", "!=", "<", "<=", ">", ">=", "null", "not_null")
valuestringrequired— Value to compare against (ignored for null / not_null operators)
sortBystring— Column to sort by(enum: "id", "created_at", "updated_at")
sortOrderstring— Sort direction; ascending or descending(enum: "asc", "desc")

Tool Output

filesarrayrequired— Files on the requested page (metadata only — use download-file to retrieve contents)
[]object
idstringrequired— Unique ID of the file
namestringrequired— Display name of the file as stored in Lawmatics
fileNamestringnullrequired— Original uploaded file name (e.g. report.pdf); null if not reported
contentTypestringnullrequired— MIME type of the file (e.g. application/pdf); null if not reported
sizenumbernullrequired— File size in bytes; null if not reported
createdAtstringnullrequired— When the file was created, as an ISO 8601 timestamp; null if unknown
updatedAtstringnullrequired— When the file was last updated, as an ISO 8601 timestamp; null if unknown
relationshipsobjectrequired— To-one JSON:API relationship pointers as {id,type} stubs. Not materialized — follow a pointer by calling that resource's own tool (e.g. type 'prospect' -> get-matter, type 'folder' -> get-folder).
3 fields
documentableobjectnullrequired— Owning record pointer (matter/prospect, contact, company, or firm); null when the file has no owner
2 fields
idstringrequired— ID of the referenced Lawmatics record
typestringrequired— 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
folderobjectnullrequired— Folder the file lives in; null when at the root / unfiled
2 fields
idstringrequired— ID of the referenced Lawmatics record
typestringrequired— 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
parentFolderobjectnullrequired— Parent folder pointer; null when the file is not nested under a folder
2 fields
idstringrequired— ID of the referenced Lawmatics record
typestringrequired— 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
paginationobjectnullrequired— Pagination metadata from the API response; null when the endpoint returns no meta envelope
totalPagesnumbernullrequired— Total number of pages available
limitPerPagenumbernullrequired— Maximum files returned per page; null if not reported
totalEntriesnumbernullrequired— Total number of files across all pages

Related Tools