Skip to main content
Glama

Start QuickBooks Sales Backfill

trigger_qbo_sales_backfill
Idempotent

Start a historical sales backfill from QuickBooks Online: a durable background import of Invoice and SalesReceipt documents from QBO into Spark's sales graph. Seeds customers, items, and demand velocity so forecasting works immediately. USD only; 36-month window. Idempotent — returns the existing run if one is active or completed. Blocked when the tenant has a connected commerce channel (Shopify, Amazon, WooCommerce, Square, Meta) or retained commerce sales history, because QBO sales are typically accounting mirrors and cannot be safely deduplicated without source lineage. Poll progress via get_integration_status (provider 'qbo'). Requires an operator (unpinned) org token with write access.

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": "trigger_qbo_sales_backfill"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
errorNo
statusNo
startedAtNo
completedAtNo
skippedNonUsdNo
totalImportedNo
duplicatesDetectedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare non-read-only, idempotent, non-destructive, closed-world, but the description adds substantial context beyond them: durable background execution, USD-only currency, a 36-month window, the idempotent return of an existing active/completed run, the hard block on commerce-connected tenants, and the operator (unpinned) org token with write access requirement. These are exactly the operational facts an agent needs before firing a background import.

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

Conciseness4/5

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

The purpose and window/currency constraints are front-loaded, followed by idempotency, blocking conditions, and polling. The blocking sentence is dense with a parenthetical provider list, but every clause carries operational weight rather than restating the name.

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

Completeness5/5

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

For a zero-param background job with an output schema already documenting return values, the description covers execution model, currency/window bounds, idempotency, refusal conditions, auth scope, and how to poll — nothing material is left for the agent to guess.

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?

The tool takes zero parameters, so the baseline is 4 and no schema compensation is needed. The description supplies the implicit scoping constraints (USD only, 36-month window) that a zero-param tool would otherwise leave ambiguous.

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 — a historical sales backfill of Invoice and SalesReceipt documents from QuickBooks Online into Spark's sales graph — plus what it seeds (customers, items, demand velocity). This distinguishes it from the sibling purchase-backfill and Shopify-order-backfill tools without needing to inspect their schemas.

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?

Explicitly names the conditions under which the tool refuses to run (a connected commerce channel — Shopify, Amazon, WooCommerce, Square, Meta — or retained commerce sales history) and why, and routes the agent to get_integration_status for progress polling. This is when-to-use, when-not-to-use, and alternative all in one.

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