Skip to main content
Glama

Start QuickBooks Purchase Backfill

trigger_qbo_purchase_backfill
Idempotent

Start a historical purchase backfill from QuickBooks Online: a durable background import of PurchaseOrder and Bill documents from QBO into Spark's purchasing graph. Seeds suppliers, items, lead times, and vendor terms so forecasting works immediately. USD only; 36-month window. Idempotent — returns the existing run if one is active or completed. 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_purchase_backfill"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
errorNo
statusNo
startedAtNo
completedAtNo
skippedNonUsdNo
totalImportedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false) by disclosing that the work is durable and backgrounded, that it is USD-only with a 36-month window, that a duplicate call returns the existing active/completed run, and that an operator (unpinned) org token with write access is required. The polling route through get_integration_status adds operational context the annotations cannot carry.

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 compact clauses, each front-loaded with the operative fact: what runs, what it seeds, the hard limits, the idempotency contract, the polling path, and the auth prerequisite. No filler and no repetition of the title or annotations.

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-parameter, non-destructive, idempotent trigger with an output schema, the description covers everything an agent needs: scope, side effects, constraints, duplicate-call behavior, follow-up tool for status, and auth requirements. Return-value shape is correctly left to the output schema.

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?

There are zero parameters, so there is no argument meaning to add; the description instead pins the fixed constraints (USD only, 36-month window) that would otherwise be assumed configurable. That is useful framing, though with an empty schema there is little else for the description to contribute.

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 ("Start a historical purchase backfill from QuickBooks Online") plus scope detail: PurchaseOrder and Bill documents imported into the purchasing graph. The purchase-vs-sales distinction implicitly separates it from the sibling trigger_qbo_sales_backfill, and the seeding side effects (suppliers, items, lead times, vendor terms) make the tool's footprint unambiguous.

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 clear context for use (historical backfill, so forecasting works immediately) and routes the agent to get_integration_status with provider 'qbo' for progress polling. It also explains the idempotency shortcut instead of a duplicate-run decision. It does not explicitly say when to prefer this over import_qbo_master_data or import_historical_purchase_orders, which keeps it 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