Skip to main content
Glama
thriveventurelabs

AccountsOS MCP Server

Official

Get Income By Currency

get_income_by_currency
Read-onlyIdempotent

Get income or expense totals grouped by each transaction currency, plus the company's functional-currency total, in a single call. Use for currency-specific totals like EUR vs GBP before FX checks.

Instructions

Currency-split income (or expense) totals in ONE compact call: face totals grouped by each transaction currency (e.g. EUR face vs GBP face) PLUS the company functional-currency total for the same set. Use when the user asks "total income in EUR and in GBP", "how much came in in euros vs pounds", "income by currency", or wants face vs converted figures before an FX check. Do NOT page get_transactions to sum — this returns aggregates only (no transaction dump). Defaults to money-in (income); pass direction "out" for spend.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
to_dateNoEnd date (YYYY-MM-DD), inclusive
directionNoin = income / money in (default); out = spend / money out
from_dateNoStart date (YYYY-MM-DD), inclusive

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.3

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, so the description correctly aligns. It adds behavioral context beyond the annotations: the tool aggregates and does not return raw transactions, it defaults to income direction, and it includes a functional-currency total in the same set. No contradiction exists.

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

Conciseness5/5

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

The description is compact and front-loaded: it opens with the core function, immediately follows with usage examples, then gives an exclusion, and ends with the default. Every sentence adds value; there is no redundancy or fluff.

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 read-only, idempotent tool with only three optional parameters and no output schema, the description fully covers what the agent needs: what it returns (aggregates, not transactions), the distinction between face and functional-currency totals, the direction default, and the explicit warning against using get_transactions. No critical information 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 description coverage is 100%, with each parameter (to_date, direction, from_date) already described in the input schema. The description reiterates the direction default ('Defaults to money-in') and clarifies that direction 'out' means spend, but this largely mirrors the schema. It does not add new parameter-specific semantics beyond the schema, so a baseline of 3 is appropriate.

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 clearly states the tool returns currency-split income or expense totals, including both face amounts per transaction currency and the functional-currency total. It uses a specific verb ('returns') and resource ('currency-split income/expense totals'), and explicitly differentiates from the sibling get_transactions by noting it returns aggregates only and not a transaction dump. This leaves no ambiguity about what the tool does.

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?

The description gives explicit when-to-use triggers with concrete user phrasings ('total income in EUR and in GBP', 'income by currency') and a clear exclusion ('Do NOT page get_transactions to sum'). It also explains the default direction and how to switch to expense mode, providing complete routing guidance.

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