Skip to main content
Glama

List expenses

list_expenses
Read-only

List plan expenses (optional boxId / name query). User-facing amount = amountInBox in boxCurrency only (never settlement amount/currency). First choice for scoped plan questions (name, amount, frequency). paymentAnchorDate is schedule config — not the next due date (use nextPaymentDate); paymentEndDate (if set) is the last payment; ended: true means it already finished and no longer counts (no next payment); paymentsLeft = payments remaining through the end date; once = single dated payment with monthlyAmount to set aside; upcoming / next payment dates → search_tools then list_schedule. Prefer plan over inventing bank subscriptions; full linked-accounts drift → Transactions Analysis.

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": {
      "budgetId": "<budgetId>"
    },
    "name": "list_expenses"
  }
}

Input Schema

NameRequiredDescriptionDefault
boxIdNo
limitNo
queryNo
budgetIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=false), so the description correctly spends its words elsewhere: it discloses the critical rule that the user-facing amount is amountInBox in boxCurrency and never the settlement amount/currency. It also decodes several returned fields (paymentAnchorDate vs nextPaymentDate, paymentEndDate, ended, paymentsLeft, once), which matters because there is no output schema. It stops short of describing ordering, pagination, or what the limit default is.

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 in the first clause, but the remainder is a dense, run-on string of dash-separated clauses mixing call guidance with a glossary of schedule fields that arguably belongs to list_schedule. Every clause carries information, yet the lack of sentence boundaries makes it hard to parse and easy to misread.

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 does the heavy lifting on the tricky returned fields (amountInBox/boxCurrency, paymentAnchorDate, paymentEndDate, ended, paymentsLeft, once) and clarifies what happens to ended expenses when counting next payments. Missing is anything about result volume, ordering, or the limit parameter's effect on the response, which is a real but modest gap for a read-only list tool.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must carry all four parameters and it only partially does: it flags boxId and the name query as optional filters, but says nothing about budgetId (the sole required parameter) or what limit controls or defaults to. Two of four parameters remain semantically empty to the agent.

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?

Opens with a concrete verb+resource ("List plan expenses") and immediately scopes it with the optional boxId / name-query filters, so the agent knows it is a filtered read of a specific resource. It also distinguishes itself from list_schedule and Transactions Analysis by naming where those belong, though the word "plan" is domain jargon that is only obliquely clarified by the later "Prefer plan over inventing bank subscriptions" clause.

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?

Explicitly states this is the "First choice for scoped plan questions (name, amount, frequency)" and then routes two named alternatives: upcoming/next payment dates → search_tools then list_schedule, and linked-accounts drift → Transactions Analysis. Both a when-to-use and a when-not-to-use condition are given, which is the full bar for this dimension.

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