Skip to main content
Glama

Sprout: AI Finance & Cash Flow

Search bank and card transactions

search_transactions
Read-onlyIdempotent

Use this when the person asks about personal purchases, business expenses, company card charges, vendor or supplier payment history, a specific merchant or amount, or transaction review for bookkeeping preparation. Filter by the selected account, dates, description, category, amount, and currency. Returns full match counts and signed totals by currency plus a page of newest matches and the offset of the next page. Includes pending items and marked transfers, which posted spending totals exclude. Does not match invoices. Merchant and description text is supplied by banks. Filters combine; minAmount and maxAmount compare absolute amounts, so they match money in and out alike. For totals by category or merchant call get_spending_breakdown; for possible duplicates or outsized charges, find_unusual_transactions.

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

Input Schema

NameRequiredDescriptionDefault
toNoInclusive end, ISO date or timestamp, e.g. 2026-09-30. Calendar dates include the entire day.
fromNoInclusive start, ISO date or timestamp, e.g. 2026-09-01. Omit both dates to use the saved default period.
limitNoRows per page, default 25. Does not limit the count or totals.
offsetNoStart at zero; use the previous response's nextOffset to continue with the same filters.
categoryNoExact category key returned by get_spending_breakdown or a category mention.
currencyNoISO currency, e.g. USD or CAD. Monetary summaries use one currency and never convert or combine currencies.
accountIdNoPersonal or business account id from list_accounts or a mention. Omit for all connected accounts; resolve the user's selected accounts first for business-only or personal-only reviews.
maxAmountNoMaximum absolute amount in major units.
minAmountNoMinimum absolute amount in major units.
descriptionContainsNoCase-insensitive text to match in the transaction description.

Output Schema

NameRequiredDescriptionDefault
countYes
setupNoPresent when bank data is missing, syncing, failing, or out of date. Lead the answer with it.
latestYes
offsetYes
periodYes
totalsYes
earliestYes
nextOffsetYes
transactionsYes
returnedCountYes

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?

Beyond the readOnly/idempotent/non-destructive annotations, it discloses the return shape (full match counts, signed totals by currency, a page of newest matches, nextOffset), the inclusion of pending items and marked transfers with the caveat that posted spending totals exclude them, and the data-quality warning that merchant/description text is bank-supplied. These are exactly the operational facts an agent cannot get from the annotations.

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?

Usage guidance is front-loaded and the alternative routing is placed last, which is the right order for an agent scanning for a decision. The middle is dense but nearly every clause carries a distinct constraint; only the minAmount/maxAmount absolute-value point mildly echoes the schema.

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 10-parameter, all-optional search tool with an output schema, the definition covers intent, filtering semantics, pagination continuation, currency handling, and known data caveats. Nothing an agent needs in order to call this correctly and interpret the result is missing.

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, and the description adds real semantics on top: filters combine, minAmount/maxAmount compare absolute values so they match money in and out alike, and monetary summaries use a single currency without conversion. It doesn't explain the offset/nextOffset pagination contract in the description, but that is already documented in 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?

The description opens with a concrete verb-and-resource framing ('search' over personal purchases, business expenses, card charges, vendor payments) and enumerates the user intents it serves, so an agent can recognize the request type immediately. It also names the siblings it is not (get_spending_breakdown, find_unusual_transactions), making the boundary unambiguous.

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?

It states when to use it, gives an explicit exclusion ('Does not match invoices'), and routes two adjacent intents to specific alternatives ('For totals by category or merchant call get_spending_breakdown; for possible duplicates or outsized charges, find_unusual_transactions'). That is the full when/when-not/alternative triad.

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.