Expenses
The Expenses category of the Lawmatics MCP server exposes 5 Lawmatics tools you can call directly from Claude, ChatGPT, or any MCP client through Weave Legal. Each Expenses tool below is documented with its purpose and complete input and output schema, giving your firm governed, auditable access to Lawmatics expenses data.
Create Expense
Create an expense in Lawmatics and attach it to a matter or contact. Cost is in integer cents (e.g. 50000 = $500.00). Requires the associated and creating user ids (use get-current-user for the caller's own id). Optionally set the billing expense type, billable flag, and invoice. Note: for contact-attached creates Lawmatics may report a temporary error even though the expense WAS created — verify with list-expenses before retrying to avoid duplicates.
Delete Expense
Delete an expense from Lawmatics by ID. This is irreversible.
Get Expense
Fetch a single expense from Lawmatics by ID. Returns its cost (integer cents), billable status, timestamps, and a `relationships` envelope of {id,type} pointers to related records (the attached matter or contact, the staff and creating users, the billing expense type, and the invoice).
List Expenses
List expenses from Lawmatics with optional pagination, filtering, and sorting. Filter by the attached matter/contact id, the associated user id, or expense fields like billable and created_at. Each row carries a `relationships` envelope of to-one {id,type} pointers (the attached matter or contact, staff and creating users, billing expense type, invoice).
Update Expense
Update an existing expense in Lawmatics by ID. Supports changing the description and billable flag. Lawmatics requires the matter/contact association on every update, so exactly one of matterId/contactId must be provided — pass the expense's current owner (from get-expense) to keep it unchanged, or a different one to re-target. Note: for contact-attached updates Lawmatics may report a temporary error even though the update WAS applied — verify with get-expense before retrying.
Related Categories