Skip to main content
Glama
actual-mcp-server

actual-mcp-server

Search transactions

search_transactions
Read-onlyIdempotent

Search transaction records by account, filter, amount, category, month, payee, or uncategorized status, returning matching rows with counts and pagination details.

Instructions

Find transaction records, not totals; pick one by. Totals: summarize_transactions. Ids: list_entities. Custom query: run_query. A field the by lacks is refused by name. Amounts: integer cents, outflows negative; dates YYYY-MM-DD. account: account_id, start_date, end_date. filter: account_id, start_date, end_date, min_amount, max_amount, category_id, payee_id, notes, cleared, reconciled. amount: min_amount and max_amount, or absolute_amount, plus start_date, end_date, account_id, category_name, limit. category: category_name, start_date, end_date, account_id, min_amount, max_amount, limit. month: month, account_id, category_name, payee_name, min_amount, max_amount, limit. payee: payee_name, start_date, end_date, account_id, category_name, min_amount, max_amount, limit. uncategorized: start_date, end_date, account_id, include_transactions, limit, offset. Behavior: category and payee need their name. filter, category, month refuse an off-budget account_id. account and filter have no limit. Limits: amount, category, month, payee return limit rows (default 100; hasMore: more exist; count and totalAmount cover returned rows). uncategorized pages by limit (default 50), offset. amount needs account_id or a date. An unknown category or payee gives an error field. Category or notes filters match a split by child (parent_id). Returns { result: [transaction] } for account, filter; { transactions, count, totalAmount, hasMore } for amount, category, month, payee; { totalCount, totalAmount, byAccount, dateRange } for uncategorized, plus transactions and hasMore with include_transactions.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "by": "<by>"
    },
    "name": "search_transactions"
  }
}

Input Schema

NameRequiredDescriptionDefault
byYes
limitNoMaximum rows, up to 1000 (default 100; uncategorized 50).
monthNoMonth, YYYY-MM (default current).
notesNoNotes substring, case-insensitive; "#trip" also finds "#tripod".
offsetNoFirst row of the page (default 0).
clearedNoMatch this cleared flag.
end_dateNoLast day, inclusive (uncategorized: default today).
payee_idNoPayee id from list_entities.
account_idNoAccount id from list_entities. Omit for all accounts.
max_amountNoLargest amount in cents.
min_amountNoSmallest amount in cents.
payee_nameNoPayee name, case-insensitive.
reconciledNoMatch this reconciled flag.
start_dateNoFirst day, inclusive.
category_idNoCategory id from list_entities.
category_nameNoCategory name, case-insensitive.
absolute_amountNoAmount in cents, either sign; overrides min_amount and max_amount.
include_transactionsNotrue also returns the rows (default false: counts only).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.36.1
    • changedInput schema / properties / cleared / description
      Previous value: -"Only rows with this cleared status."New value: +"Match this cleared flag."
    • changedInput schema / properties / max_amount / description
      Previous value: -"Largest amount in cents; outflows negative."New value: +"Largest amount in cents."
    • changedInput schema / properties / min_amount / description
      Previous value: -"Smallest amount in cents; outflows negative."New value: +"Smallest amount in cents."
    • changedInput schema / properties / reconciled / description
      Previous value: -"Only rows with this reconciled status."New value: +"Match this reconciled flag."
  2. Changed1 schema field changedv0.33.0
    • changedInput schema / properties / notes / description
      Previous value: -"Notes substring, case-insensitive."New value: +"Notes substring, case-insensitive; \"#trip\" also finds \"#tripod\"."
  3. Addedv0.30.0

TDQS

A4.5/5.0
Behavior4/5

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

Far beyond the annotations (which only establish read-only/idempotent safety), it discloses an unusual multi-mode contract: `by`-incompatible fields are refused by name, filter/category/month reject off-budget account ids, account/filter have no limit, amount-mode requires account_id or a date, unknown category/payee return an error field, and split-child matching for category/notes. The only real gap is that it says counts cover 'returned rows' but never mentions an explicit ordering, so row-set composition across pages is only partly specified.

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?

Front-loaded with the purpose and routing, and the per-mode field lines are the right structure for a discriminator this complex. However it is very dense and repeats schema-supplied facts (limit defaults, YYYY-MM-DD format, limit 1000), and the return-shape run-on at the end is hard to parse for what is the single most important invocation detail.

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 correctly takes on the burden of documenting the three distinct return shapes and the hasMore/count/totalAmount semantics per mode, plus the include_transactions switch. Completeness is only marred by the missing ordering/pagination guarantee, which matters most for the uncategorized offset paging path.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 94%, so baseline would be 3, but the description adds semantics the schema cannot express: which of the 18 parameters are meaningful for each `by` value, that fields outside that set are rejected by name, and mode-specific defaults. It also reinforces units and sign convention (integer cents, outflows negative) and the absolute_amount override.

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 ('Find transaction records') and immediately adds the crucial disambiguation 'not totals; pick one `by`'. It names the sibling that covers totals (summarize_transactions) and the ones for ids and custom queries, so an agent can distinguish this from near-neighbors without opening any schema.

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?

Explicit routing: totals go to summarize_transactions, id lookups to list_entities, custom queries to run_query. It also tells the agent how to choose among the seven `by` modes by listing the exact fields each mode accepts, so mode selection is not left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.