Skip to main content
Glama

wariwari

Get an expense's history

get_expense_history
Read-only

Use this to see who created or changed one expense or payment, and what changed, newest first.

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": {
      "groupToken": "<groupToken>",
      "transactionToken": "<transactionToken>"
    },
    "name": "get_expense_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
takeNoHow many items to return.
cursorNoThe `pagination.cursor` of the previous page. Opaque; pass it back unchanged.
groupTokenYesThe group's token, from `listGroups` or `listSearchResults`.
transactionTokenYesThe expense or payment's token, from `listTransactions` or `listSearchResults`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / cursor / description
      Previous value: -"Cursor from the previous response."New value: +"The `pagination.cursor` of the previous page. Opaque; pass it back unchanged."
    • addedInput schema / properties / groupToken / description
      Added value: +"The group's token, from `listGroups` or `listSearchResults`."
    • changedInput schema / properties / take / description
      Previous value: -"Number of activity entries to return. Defaults to 50; maximum 100."New value: +"How many items to return."
    • addedInput schema / properties / transactionToken / description
      Added value: +"The expense or payment's token, from `listTransactions` or `listSearchResults`."
  2. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so safety is covered. The description adds one genuinely new behavioral trait, ordering ('newest first'), plus a hint at returned content (who, what changed), but says nothing about history retention, pagination behavior, or result size limits.

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?

A single front-loaded sentence with no filler; the usage cue, scope, and ordering trait all arrive in one pass.

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 read-only, four-parameter history tool with no output schema, the description covers intent, scope, and ordering, and the schema covers all parameters. A little more on what a history entry contains or how pagination terminates would close the remaining gap.

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 take, cursor, groupToken, and transactionToken all documented in the schema, including the opaque-cursor instruction. The description adds no meaning beyond that, so the baseline 3 is appropriate.

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?

States a specific verb+resource: see who created or changed one expense or payment, and what changed. It scopes the tool to a single transaction, which separates it implicitly from get_group_history, but it never names that sibling explicitly, so the differentiation is inferred rather than stated.

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?

'Use this to see who created or changed one expense or payment' gives clear when-to-use context tied to a specific intent (audit trail for a single transaction). It stops short of exclusions or naming an alternative such as get_group_history for group-wide activity, so it lands at clear-context-without-exclusions rather than full routing guidance.

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