Skip to main content
Glama

Set up matter billing

set_up_matter_billing
Destructive

Sets up Clio billing on up to 50 matters: open date, Case Value, flat fee, fee entries. Does not create a bill or apply a payment. 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

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "set_up_matter_billing"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNofalse or omitted returns a preview; true applies the change identified by preview_id.
mattersNoUp to 50 matters, each with its own fees and dates. Alternative to matter_id and its fees. One preview for all; blocked ones are skipped.
plea_feeNoPlea Fee, dollars.
retainerNoTrue Availability Retainer (the down payment), dollars.
matter_idNoClio matter id (digits) from find_matter or list_open_matters. Not the display number.
open_dateNoYYYY-MM-DD hire date (first payment). Fee entries are dated to it. Defaults to the open date already in Clio, else today.
case_valueNoCase Value in dollars. Defaults to the fees before the 4% card charge, rounded down to $50.
preview_idNopreview_id is the id returned by this tool's preview call. Required when confirm is true.
ticket_feeNoTraffic ticket fee, dollars (ticket matters).
pretrial_feeNoPretrial Legal-Services Fee, dollars.
idempotency_keyNoOptional. A retry with the same key returns the first result without a second write. Defaults to preview_id.
confirm_overwriteNoRequired (true) to change an open date or Case Value already set.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • addedInput schema / properties / case_value
      Added value: +{
      +  "description": "Case Value in dollars. Defaults to the fees before the 4% card charge, rounded down to $50.",
      +  "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 / confirm_overwrite
      Added value: +{
      +  "description": "Required (true) to change an open date or Case Value already set.",
      +  "type": "boolean"
      +}
    • 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 / matters
      Added value: +{
      +  "description": "Up to 50 matters, each with its own fees and dates. Alternative to matter_id and its fees. One preview for all; blocked ones are skipped.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "case_value": {
      +        "type": "number"
      +      },
      +      "matter_id": {
      +        "description": "Clio matter id (digits) from find_matter or list_open_matters. Not the display number.",
      +        "type": "string"
      +      },
      +      "open_date": {
      +        "description": "YYYY-MM-DD hire date.",
      +        "type": "string"
      +      },
      +      "plea_fee": {
      +        "type": "number"
      +      },
      +      "pretrial_fee": {
      +        "type": "number"
      +      },
      +      "retainer": {
      +        "type": "number"
      +      },
      +      "ticket_fee": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "matter_id"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 50,
      +  "type": "array"
      +}
    • addedInput schema / properties / open_date
      Added value: +{
      +  "description": "YYYY-MM-DD hire date (first payment). Fee entries are dated to it. Defaults to the open date already in Clio, else today.",
      +  "type": "string"
      +}
    • addedInput schema / properties / plea_fee
      Added value: +{
      +  "description": "Plea Fee, dollars.",
      +  "type": "number"
      +}
    • addedInput schema / properties / pretrial_fee
      Added value: +{
      +  "description": "Pretrial Legal-Services Fee, dollars.",
      +  "type": "number"
      +}
    • 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 / retainer
      Added value: +{
      +  "description": "True Availability Retainer (the down payment), dollars.",
      +  "type": "number"
      +}
    • addedInput schema / properties / ticket_fee
      Added value: +{
      +  "description": "Traffic ticket fee, dollars (ticket matters).",
      +  "type": "number"
      +}
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

The description discloses behavior the annotations do not: a two-phase preview/apply protocol, the 50-matter ceiling, and explicit exclusions (no bill, no payment). destructiveHint=true is consistent with the overwrite semantics and the description reinforces it by making the preview step mandatory rather than contradicting it.

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?

Four short sentences, front-loaded with what the tool does, then the exclusions, then the two-call protocol, then auth. No restatement of the name or title, and nothing superfluous.

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 12-parameter, destructive, two-phase tool with no output schema, the description adequately covers the call sequence and prerequisites. It stops short of describing what the preview returns or how partial failures surface, which would help an agent decide whether to proceed.

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

Parameters3/5

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

Schema coverage is 100%, so parameter meaning is already fully documented, including preview_id, confirm_overwrite, and idempotency_key. The description adds only the field summary and the 50-matter limit, which the schema also states, so baseline 3 applies.

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?

"Sets up Clio billing on up to 50 matters: open date, Case Value, flat fee, fee entries" names a specific verb, the resource, the fields touched, and the batch limit. The negative scope ("Does not create a bill or apply a payment") prevents confusion with billing-reading siblings such as list_matter_bills.

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

Usage Guidelines4/5

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

It clearly establishes the operating context: a preview call first, then a second call with confirm=true and preview_id, plus "Sign-in required." It gives no explicit when-not or named alternative, but there is no obvious sibling that performs billing setup, so the guidance is adequate without it.

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