Skip to main content
Glama

Open new matter

create_matter
Destructive

Opens a new matter from a lead: creates the Asana project from the firm's matter template in the portfolio for its Matter Type, creates the Dropbox client folder, records both on the lead, and posts one comment on the lead. Refuses unless the retainer is signed and paid, or staff_override_reason is given. Does not write the SSN, create an invoice, file documents, or email anyone, and the automatic signed-and-paid opening will not run for this lead afterwards. 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": {
      "lead_id": "<lead_id>",
      "file_no": "<file_no>"
    },
    "name": "create_matter"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNofalse or omitted returns a preview; true applies the change identified by preview_id.
file_noYesThe firm's File No for the new matter (digits).
lead_idYesLead (intake-board task) id from list_recent_leads or find_matter.
preview_idNopreview_id is the id returned by this tool's preview call. Required when confirm is true.
idempotency_keyNoOptional. A retry with the same key returns the first result without a second write. Defaults to preview_id.
staff_override_reasonNoRequired only to open before the retainer is signed and paid. Recorded on the lead.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / confirm / description
      Previous value: -"Must be omitted or false on the first call — that only previews. Never invent a preview_id. After the person agrees, call again with confirm: true AND the preview_id this server returned."New value: +"false or omitted returns a preview; true applies the change identified by preview_id."
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"Optional. A retry with the same key returns the first result instead of writing again. Defaults to preview_id."New value: +"Optional. A retry with the same key returns the first result without a second write. Defaults to preview_id."
    • changedInput schema / properties / preview_id / description
      Previous value: -"Exactly the preview_id this server returned on a prior call for these arguments. Required with confirm: true. Never generate or reuse one from another tool or conversation."New value: +"preview_id is the id returned by this tool's preview call. Required when confirm is true."
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well past the annotations (destructiveHint=true, openWorldHint=false, idempotentHint=false) by listing exactly what is created, stating the refusal gate, and explicitly delimiting what it does NOT do (no SSN write, no invoice, no document filing, no email). It also discloses a non-obvious side effect – that the automatic signed-and-paid opening will not run for this lead afterwards – and notes sign-in is required and the preview/confirm statefulness.

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?

Front-loads the action and its effects, then progresses to the permission gate, the negative scope, the stateful consequence, and the preview/confirm mechanics. Every sentence carries decision-relevant information with no filler.

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 destructive, multi-system, stateful write with no output schema, the description covers preconditions, side effects, return shape of the preview call, and auth requirements. The only gap is that the applied (confirm=true) result shape is not described, though that is largely covered by the preview semantics.

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 description coverage is 100%, so every parameter is already documented, and the baseline is 3. The description reinforces preview_id/confirm semantics and the staff_override_reason gate, but adds little mechanical detail (e.g., file_no format expectations beyond the schema's "digits") that the schema does not already carry.

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?

Names a specific verb and resource ("Opens a new matter from a lead") and then enumerates the concrete effects: Asana project from the matter template in the correct portfolio, Dropbox client folder, lead records, and one lead comment. That level of detail lets an agent distinguish it from siblings like create_matter_document, create_matter_task, or create_dropbox_folder without opening any schema.

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?

Gives explicit preconditions (retainer must be signed and paid, or a staff_override_reason supplied) and the two-phase call pattern (first call previews, second call with confirm=true and preview_id applies). It does not name sibling alternatives to use instead, but the usage context is otherwise unambiguous.

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