Skip to main content
Glama

Get expense history

figa_get_expense_history
Read-onlyIdempotent

Read the change log of one accessible expense, newest first. Each entry gives the action (such as create, update, skip or unskip), the acting user, changed fields with old and new values, and createdAt in Unix seconds. An occurrence of a recurring series includes the series' changes and only its own skip/unskip entries. The log contains no current amounts or payment status.

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_history"
  }
}

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.4/5.0
Behavior5/5

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

Annotations only declare a safe, idempotent read; the description adds real behavior beyond that: newest-first ordering, the entry payload (action, acting user, changed fields with old/new values, createdAt in Unix seconds), and the absence of current amounts. It also discloses the non-obvious recurring-series semantics — a series occurrence returns the series' changes plus only its own skip/unskip entries.

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?

Four tight sentences with the core action front-loaded and each subsequent sentence adding distinct information (return shape, series behavior, explicit limitations). No filler or repetition.

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?

An output schema exists, yet the description still previews the entry structure in prose, which is helpful for reasoning about history data. Scope, ordering, series edge cases, and known omissions are all covered for a two-parameter read-only tool.

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 both parameters are already documented, including the nuance that expenseId may be a stored UUID or a generated occurrence ID. The description only echoes the 'accessible expense' scoping constraint, adding little beyond the schema — baseline 3.

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?

States a specific verb and resource ('Read the change log of one accessible expense') plus result ordering ('newest first'). The closing line, 'The log contains no current amounts or payment status,' cleanly separates it from the current-state read (figa_get_expense), so an agent can choose without opening a schema.

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?

Usage is clearly implied by 'one accessible expense' and reinforced by the exclusion of current amounts and payment status, which steers amount lookups elsewhere. It stops short of naming an explicit alternative tool or stating prerequisites such as permissions, so it is clear but not fully routing.

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