Skip to main content
Glama

List expenses

figa_list_expenses
Read-onlyIdempotent

List the expenses of one calendar month, in stored expense form, with filtering and an optional result limit; there is no pagination. Dates are Unix seconds. templateId identifies a recurring template/version; id identifies the expense. Plan visibility is applied before filters, including skipped and paused expenses. Optional commitment is the full finite-series balance in commitment.currency: totalOccurrences counts active charges, skippedOccurrences is separate, and inactivePaidAmount describes paid inactive history. An absent commitment is not a zero balance. manualSeries is the expense group (manual series in the API) of the expense, or null. manualSeriesId limits the list to one group and combines with the other filters; a group outside the workspace returns MANUAL_SERIES_NOT_FOUND. metadata.filterOptions.manualSeries lists the groups (id, name, archivedAt) among rows matching the other filters, by name; a selected group stays listed even without rows that month. For due windows, dueBy is the final day; expenseDate is the window start until Paid, and overdue begins after dueBy. Unpaid windows appear in every month they touch. carriedOver rows fall outside the month of expenseDate and are excluded from ordinary metadata totals; carriedOverUnpaid reports their amount and count separately.

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": {
      "workspaceId": "<workspaceId>",
      "query": "<query>"
    },
    "name": "figa_list_expenses"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesRequired year and month (1-12), plus optional filters: paid or unpaid only, category, recipient, tag, expense group (manualSeriesId), amount comparison, recurring only, name search, an excluded expense ID and a result limit (1-50).
workspaceIdYesID of a workspace selected for this connection. Other workspaces are rejected.

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNo
messageYes
successYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / query / description
      Added value: +"Required year and month (1-12), plus optional filters: paid or unpaid only, category, recipient, tag, expense group (manualSeriesId), amount comparison, recurring only, name search, an excluded expense ID and a result limit (1-50)."
    • addedInput schema / properties / workspaceId / description
      Added value: +"ID of a workspace selected for this connection. Other workspaces are rejected."
  2. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Beyond the read-only/idempotent annotations, the description discloses substantial non-obvious behavior: plan visibility is applied before filters and includes skipped/paused expenses, unpaid due windows appear in every month they touch, carriedOver rows are excluded from ordinary totals, and an absent commitment is not a zero balance. It also names a concrete error outcome (MANUAL_SERIES_NOT_FOUND) for out-of-workspace group IDs.

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 correctly in the first sentence, but the remainder is one dense run-on sequence that mixes input-filter semantics with return-field semantics (commitment, carriedOver, dueBy, expenseDate) without paragraph or list structure. Sentences mostly earn their place, yet the jargon load makes the definition harder to use than its length alone suggests.

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?

For a two-parameter but deeply nested query with a nested object schema and an output schema, the description covers month semantics, filter composition, error cases, and the tricky due-window/carriedOver rules. The output schema handles field structure, so the remaining description is mostly semantic context rather than duplication.

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 would be 3, but the description adds real meaning: manualSeriesId narrows to one group and composes with other filters, the limit is a result cap with no pagination beneath it, and a foreign group ID produces a specific error. It also clarifies that templateId vs id identify different entities, which the schema does not.

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 opening sentence gives a specific verb, resource and scope: expenses for one calendar month, with filtering and an optional limit, and explicitly notes there is no pagination. It does not name or differentiate against close siblings such as figa_list_manual_series_expenses or figa_show_expenses, so an agent must infer the split itself.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is implied rather than stated: manualSeriesId 'limits the list to one group and combines with the other filters', and a group outside the workspace returns MANUAL_SERIES_NOT_FOUND. There is no explicit when-to-use-this-vs-alternative guidance, so the agent gets constraints but no routing rules.

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