Skip to main content
Glama

Link lead to matter

link_lead_to_matter
Destructive

Records that a lead belongs to an existing opened matter (Asana project) and its Dropbox folder, on the lead's portal record. Changes nothing in Asana or Dropbox. 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>",
      "matter_id": "<matter_id>"
    },
    "name": "link_lead_to_matter"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNofalse or omitted returns a preview; true applies the change identified by preview_id.
lead_idYesLead (intake-board task) id from list_recent_leads or find_matter.
matter_idYesOpened matter (Asana project) from find_matter or list_open_matters.
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.

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

A3.8/5.0
Behavior4/5

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

Adds real context beyond the annotations: the exact two-call preview/confirm protocol, the fact that Asana and Dropbox are untouched, and that sign-in is required. It does not say whether an existing link is overwritten or how failures surface, which matters given destructiveHint=true and idempotentHint=false.

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 the effect, then the non-effect, then the call protocol, then the auth requirement. Nothing is redundant and every sentence 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 five-parameter mutation with no output schema, the definition covers effect, side-effect boundary, the two-step protocol, and auth. The remaining gap is what the preview actually returns and what happens on a repeat or conflicting link, which an agent would want before committing.

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% and each parameter already carries a description, including the confirm/preview_id pairing and idempotency_key semantics. The description restates the flow at a high level but contributes no format or edge-case detail the schema lacks, so baseline 3 applies.

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

Purpose4/5

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

States a specific verb and resource ('Records that a lead belongs to an existing opened matter') and pins the scope ('on the lead's portal record'). The word 'existing' implicitly separates it from matter-creation siblings, but no sibling is named, so the agent must infer the boundary rather than read it.

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

Usage Guidelines3/5

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

The preview-then-confirm sequence tells the agent how to invoke it safely, which is genuine usage guidance. However, there is no statement of when to prefer this over adjacent tools (create_intake_link, create_matter) or what to do if the lead is already linked.

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