Skip to main content
Glama

Record matter expense

create_matter_expense

Records a hard-cost Clio expense as the signed-in Clio user, matter attorney, firm default, or sole Clio user. Does not bill anyone. A first call returns a preview; a second call with confirm true and that preview_id applies the change. Sign-in required.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "matter_id": "<matter_id>",
      "amount": "<amount>",
      "note": "<note>"
    },
    "name": "create_matter_expense"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoYYYY-MM-DD the cost was incurred. Defaults to today (UTC).
noteYesLine item text the client sees on the bill.
amountYesDollars, e.g. 175 for a $175 filing fee.
confirmNofalse or omitted returns a preview; true applies the change identified by preview_id.
matter_idYesClio matter id (digits) from find_matter or list_open_matters. Not the display number.
preview_idNopreview_id is the id returned by this tool's preview call. Required when confirm is true.
user_emailNoClio user the expense is recorded under. Defaults to your Clio user; required if you have none.
non_billableNoTrue keeps it off the client bill. Defaults to false.
idempotency_keyNoOptional. A retry with the same key returns the first result without a second write. Defaults to preview_id.
expense_category_idNoFrom list_clio_expense_categories. Optional.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • addedInput schema / properties / amount
      Added value: +{
      +  "description": "Dollars, e.g. 175 for a $175 filing fee.",
      +  "type": "number"
      +}
    • addedInput schema / properties / confirm
      Added value: +{
      +  "description": "false or omitted returns a preview; true applies the change identified by preview_id.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / date
      Added value: +{
      +  "description": "YYYY-MM-DD the cost was incurred. Defaults to today (UTC).",
      +  "type": "string"
      +}
    • addedInput schema / properties / expense_category_id
      Added value: +{
      +  "description": "From list_clio_expense_categories. Optional.",
      +  "type": "string"
      +}
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "description": "Optional. A retry with the same key returns the first result without a second write. Defaults to preview_id.",
      +  "type": "string"
      +}
    • addedInput schema / properties / matter_id
      Added value: +{
      +  "description": "Clio matter id (digits) from find_matter or list_open_matters. Not the display number.",
      +  "type": "string"
      +}
    • addedInput schema / properties / non_billable
      Added value: +{
      +  "description": "True keeps it off the client bill. Defaults to false.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / note
      Added value: +{
      +  "description": "Line item text the client sees on the bill.",
      +  "type": "string"
      +}
    • addedInput schema / properties / preview_id
      Added value: +{
      +  "description": "preview_id is the id returned by this tool's preview call. Required when confirm is true.",
      +  "type": "string"
      +}
    • addedInput schema / properties / user_email
      Added value: +{
      +  "description": "Clio user the expense is recorded under. Defaults to your Clio user; required if you have none.",
      +  "type": "string"
      +}
    • addedInput schema / required
      Added value: +[
      +  "matter_id",
      +  "amount",
      +  "note"
      +]
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare the mutation/safety profile; the description adds real behavioral context on top: authentication requirement, the preview-then-apply staging model, and the fallback chain used to determine which user the expense lands under. It stops short of saying what happens on a confirm without a valid preview_id, whether a recorded expense is editable/voidable, or how previews expire, and it never mentions idempotency despite an idempotency_key defaulting to preview_id.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences with no filler, front-loaded with the action and attribution, then the two-step execution model, then the auth prerequisite. Every clause carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter mutation with no output schema, the description covers the essentials: what it creates, under whose name, that it does not bill, that confirmation is required, and that sign-in is needed. It is thin on post-write behavior and failure modes, but the fully documented schema absorbs most remaining burden.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description still adds meaning by spelling out the user-attribution fallback order that governs user_email and by clarifying the confirm/preview_id contract. The phrase "Does not bill anyone" sits slightly awkwardly beside the non_billable parameter and the note field described as client-facing bill text, leaving the billing semantics a bit muddled rather than clarified.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Records a hard-cost Clio expense") plus the attribution scope (signed-in user, matter attorney, firm default, sole user) and a negative scope clause ("Does not bill anyone"). An agent can distinguish this from the sibling list_clio_expense_categories, which is referenced only as a lookup source for a parameter.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit two-step protocol: a first call returns a preview, a second call with confirm=true and that preview_id applies the change. It also names the prerequisite (sign-in required). This is exactly the when/how guidance an agent needs for a staged write tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources