Skip to main content
Glama

Qb Query

qb_query
Read-onlyIdempotent

Execute a QuickBooks SQL-like query (QBO query language) against any entity type, Customer, Invoice, Account, etc. Example: "SELECT * FROM Customer MAXRESULTS 10". Returns raw QuickBooks API response with matching records.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "SELECT * FROM Customer MAXRESULTS 10"
    },
    "name": "qb_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesQuickBooks SQL-like query string (e.g., "SELECT * FROM Customer MAXRESULTS 10")

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "oneOf": [
      +    {
      +      "properties": {
      +        "error": {
      +          "description": "Error code if connection not configured",
      +          "type": "string"
      +        },
      +        "message": {
      +          "description": "Error message with setup instructions",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "error",
      +        "message"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "properties": {
      +        "QueryResponse": {
      +          "description": "Array of query results matching the QuickBooks query",
      +          "items": {
      +            "type": "object"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "type": "object"
      +    }
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "query": "SELECT * FROM Customer MAXRESULTS 10"
      +  },
      +  {
      +    "query": "SELECT * FROM Invoice WHERE DocNumber = '1001' AND TxnDate >= '2024-01-01'"
      +  }
      +]
  3. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is fully covered. The description adds that the tool returns the raw QuickBooks API response with matching records, which is useful context, but it says nothing about pagination (the MAXRESULTS default), rate limits, or the well-known limits of the QBO query language.

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?

Three short sentences, front-loaded with the verb, resource, and scope, followed by an inline example and a return-value note. Nothing is padding, though the example query duplicates the one already present in 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?

With an output schema present and annotations covering the safety profile, the description does not need to explain return values, and it stays appropriately brief for a single-parameter tool. The only real gap is operational guidance on result limits (MAXRESULTS) and query-language restrictions, which agents commonly get wrong.

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% for the single 'query' parameter and the schema already carries examples, so the baseline is 3. The description adds only the phrase 'QBO query language' and repeats a sample query that is identical to the schema example, so it does not meaningfully deepen parameter understanding.

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?

The description gives a specific verb and resource ('Execute a QuickBooks SQL-like query') and states that it works against 'any entity type, Customer, Invoice, Account, etc.', which implicitly distinguishes it from the entity-specific siblings qb_get_customer, qb_get_invoice, and qb_list_accounts. It falls short of a 5 because it never explicitly routes the agent between the generic query tool and those specialized getters.

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 usage context is only implied: two example queries show what the tool accepts, from which an agent can infer it is a read path for arbitrary entities. There is no explicit statement of when to prefer this over qb_list_invoices or qb_get_invoice, and no guidance about when this tool is not appropriate.

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.