Skip to main content
Glama

Get expense

figa_get_expense
Read-onlyIdempotent

Read an expense by its exact ID, without materializing or paying it. Eligible finite fixed-series details include full-series stats and a windowed occurrence list; stats describes the full balance. Recurring details distinguish the raw schedule from effectiveStartDate/effectiveStartDateMode, effectiveEnd and effectiveOccurrenceCount for the whole family. seriesContext contains rangeRevision, distinct from lifecycle revision, for guarded range edits. UUID and virtual aliases resolve through the canonical scheduled occurrence. Opaque editContext represents the read version for subsequent optimistic concurrency checks; replacing it on an old draft removes that protection. manualSeries is the expense group (manual series in the API) of the expense, not recurrence. dueBy is the last day of a payment window; series-stat occurrences also expose paidOn once Paid.

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>",
      "expenseId": "<expenseId>"
    },
    "name": "figa_get_expense"
  }
}

Input Schema

NameRequiredDescriptionDefault
expenseIdYesExpense ID as returned by expense reads: a stored expense UUID or the ID of a generated occurrence of a recurring series.
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 / expenseId / description
      Added value: +"Expense ID as returned by expense reads: a stored expense UUID or the ID of a generated occurrence of a recurring series."
    • addedInput schema / properties / workspaceId / description
      Added value: +"ID of a workspace selected for this connection. Other workspaces are rejected."
  2. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations already cover the read-only, idempotent, non-destructive safety profile, and the description adds substantial behavior beyond that. It discloses non-materialization/non-payment, optimistic concurrency via editContext, range revision semantics, recurring-series distinctions, and field meanings such as manualSeries and dueBy.

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 core purpose is front-loaded, and the dense clauses convey real domain semantics rather than repeating the title. However, the description is a single long paragraph packed with field-level output nuances and jargon, making it harder to scan than necessary for a two-parameter read tool.

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?

Given the complex output domain, the description is highly complete: it explains recurring-series ranges, series context revisions, editContext concurrency protection, manualSeries semantics, and dueBy/paidOn behavior. An output schema exists, but the description still supplies the semantic context an agent needs to interpret the read correctly.

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 is 3. The description adds useful meaning beyond the schema by explaining that UUID and virtual aliases resolve through the canonical scheduled occurrence, which directly affects how expenseId should be interpreted.

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 states a specific verb and resource: read an expense by exact ID, and clarifies that it does not materialize or pay it. That is enough to distinguish a read from create/update/delete siblings, but it does not explicitly name or differentiate from alternatives such as expense history or list tools.

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 is implied by 'by its exact ID' and the note about UUID and virtual aliases resolving to the canonical scheduled occurrence. However, there is no explicit when-to-use versus when-not guidance or named sibling alternatives, so an agent must infer routing from the purpose.

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