Skip to main content
Glama

Money Magician

query_invoices

Read-only

Search and filter invoices by various criteria. Returns a response with top-level "primary_currency" and "currency_warning" fields. Each invoice includes explicit "currency", "comparable" (true if matches primary currency), and "converted_to_primary" fields alongside separate numeric "amount_gross", "amount_net", and "tax_amount" values. Also has TWO status fields: "processing_status" (pending/processing/completed/paid) and "payment_status" (paid/unpaid). Amounts in different currencies are NOT directly comparable or summable. Also includes tags/categories for each invoice in the response. converted_to_primary is null when no conversion data exists, or { amount, currency, source } when a bank reconciliation has recorded the actual settlement amount in the user's primary currency. Requires the Start or Business plan.

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

Input Schema

NameRequiredDescriptionDefault
tagNoFilter by a single tag name (partial match)
limitNoMaximum number of results (default: 10)
statusNoFilter by processing_status (OCR workflow stage). Note: completed means OCR is done but NOT necessarily paid; the payment_status field in results reflects the actual payment state.
vendorNoFilter by vendor name (partial match)
date_toNoEnd date (YYYY-MM-DD)
date_fromNoStart date (YYYY-MM-DD)
max_amountNoMaximum invoice amount (gross)
min_amountNoMinimum invoice amount (gross)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true, so the description carries the rest, and it does: it discloses the top-level primary_currency/currency_warning envelope, the dual processing_status vs payment_status semantics, the converted_to_primary null-vs-object shape tied to bank reconciliation, and the critical caveat that amounts in different currencies are not comparable or summable. The plan requirement is also surfaced, which is a real gate on whether the call will succeed.

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

Conciseness3/5

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

The purpose is front-loaded, but the body is an unordered dump of response-field trivia with mid-stream additions ("Also has TWO status fields", "Also includes tags/categories") that read like afterthoughts rather than a structured return-value summary. Because there is no output schema some of this earns its place, but the ordering and emphasis (capitalized TWO, NOT) make it harder to scan than necessary.

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 no output schema, the description properly takes on the burden of explaining the return shape, including the currency envelope and the two status axes, and it flags the plan prerequisite. Remaining gaps are modest: no mention of pagination/limit behavior, sort order, or how multiple filters combine, but nothing an agent needs to avoid a wrong call is missing.

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 every parameter already has a description, including the important note that the status filter maps to processing_status and that completed does not mean paid. The description adds little filter-level meaning beyond restating the currency caveat, which tangentially affects min_amount/max_amount interpretation; the baseline of 3 is appropriate when the schema does the heavy lifting.

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 opens with a specific verb and resource ("Search and filter invoices by various criteria"), which is immediately actionable. It never names a sibling such as get_invoice_details or list_created_invoices, so an agent cannot tell from the text alone which invoice tool to pick when it needs full details versus a filtered list.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance and no reference to alternatives among the invoice-related siblings. The only situational constraint given is a prerequisite ("Requires the Start or Business plan"), which is useful but is not selection guidance.

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