Skip to main content
Glama

Link matter to QuickBooks customer

link_qbo_customer
Destructive

Records which QuickBooks customer a matter belongs to, after a person confirms a match (for example from possible_customers on an invoice listing). After linking, invoice listing returns that matter's invoices. Changes nothing in QuickBooks or Asana. 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>",
      "qbo_customer_id": "<qbo_customer_id>"
    },
    "name": "link_qbo_customer"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNofalse or omitted returns a preview; true applies the change identified by preview_id.
matter_idYesMatter identifier 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.
qbo_customer_idYesQuickBooks customer Id, usually one of list_invoices possible_customers that a person confirmed.

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.6/5.0
Behavior5/5

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

Beyond the annotations, it discloses the preview-then-apply protocol, the scope of side effects (nothing changes in QuickBooks or Asana), the post-condition (invoice listing returns that matter's invoices), and the sign-in requirement. It is consistent with destructiveHint=true — the change is a local matter-to-customer link, not a remote mutation.

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?

Five short sentences, front-loaded with the action and precondition, followed by effect scope, protocol, and auth. Every sentence carries information an agent needs; nothing is restated from the schema.

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 5-parameter mutation with no output schema, it covers precondition, preview semantics, side-effect scope, post-condition, and auth. It does not say what a preview returns or what happens on an unmatched or already-linked customer, which is the main remaining gap.

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, but the description adds workflow meaning by binding confirm and preview_id together as a two-call sequence and by pointing to possible_customers on an invoice listing as the source of qbo_customer_id. Only idempotency_key is left to the schema.

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 which QuickBooks customer a matter belongs to') and bounds the effect ('Changes nothing in QuickBooks or Asana'). An agent can distinguish this from sibling write tools like create_matter or link_lead_to_matter without opening a 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 an explicit precondition ('after a person confirms a match, for example from possible_customers on an invoice listing') and a two-step protocol (preview, then confirm with preview_id). It does not name a sibling alternative or an explicit when-not condition, so it falls short of a 5.

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