Skip to main content
Glama
Actual Budget MCP Server

Actual Budget MCP Server

by jimmyzmli

actual_query

Run read-only ActualQL queries against Actual Budget data to filter and retrieve transactions, accounts, categories, or payees without modifying records.

Instructions

[READ-ONLY] Run an ActualQL query against budget data (e.g., transactions, accounts, categories, payees). Does not modify data.

Querying Best Practices:

  • Select Fields: Use --select "date,amount,payee.name,notes,category.name,category.group.name,account.name,account.offbudget".

  • Filter Syntax: Use ActualQL JSON filter object, e.g. {"amount": {"$lt": 0}} or {"category.group.name": {"$oneof": ["Food", "Bills"]}}.

  • Historical Analysis: Run a single query to fetch transactions rather than multiple per-month API calls.

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

Input Schema

NameRequiredDescriptionDefault
argsNoLegacy CLI argument list
dataNoCustom query JSON object or string
fileNoPath to query JSON file
countNoReturn count only
limitNoMaximum rows
tableNoTarget table (e.g. transactions, accounts, categories, payees)
filterNoActualQL filter object or JSON string
selectNoComma-separated field list (e.g. 'date,amount,payee.name,notes,category.name')
order_byNoSort fields

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden; it does state '[READ-ONLY]' and 'Does not modify data', which is the most important safety trait. Beyond that it says nothing about return shape (no output schema exists), how `limit` defaults, what `count` returns, error behavior on an invalid filter, or how `args`/`data`/`file` interact — meaningful gaps for a 9-parameter tool.

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?

The read-only marker and purpose sentence are front-loaded, and the bulleted practices are scannable with concrete examples. The 'Historical Analysis' bullet is more of a performance tip than a usage rule and slightly dilutes the section, but nothing is egregiously verbose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter query tool with no annotations and no output schema, the description covers the essential 'what' and query syntax but not the return values, result size behavior, or the relationship between the several input modes (args vs data vs file). Adequate to get started, incomplete for confident invocation.

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%, so the baseline is 3. The description does add real meaning for two parameters — concrete `select` field paths and ActualQL filter operator examples ($lt, $oneof) — but leaves `args`, `data`, `file`, `count`, `limit`, and `order_by` entirely to the schema, including how they combine.

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 names a specific verb and resource: run an ActualQL query against budget data, with concrete examples (transactions, accounts, categories, payees). It doesn't explicitly distinguish itself from the related sibling tools actual_query_tables, actual_query_fields, or actual_execute, but the core purpose is 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?

The 'Querying Best Practices' section gives clear operational guidance: which fields to select, the JSON filter syntax with operator examples, and the advice to fetch transactions in one query rather than per-month calls. What's missing is tool-selection guidance — nothing says when to use this versus actual_query_tables/actual_query_fields (to discover schema) or actual_execute.

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

Deploy Server

Other Tools