Skip to main content
Glama
Mercury Multiorg MCP

Mercury Multiorg MCP

List treasury transactions

list_treasury_transactions
Read-onlyIdempotent

Retrieves ledger transactions for one treasury account, optionally filtered to a start and end date and returned newest first.

Instructions

List one treasury account's ledger transactions in Mercury API desc order, optionally within a day range.

    The API has no date filters for this endpoint and documents no sort
    key, so with `start` or `end` the whole ledger is walked (up to 200
    pages of 1000), filtered on `canonicalDay` here, and sorted newest
    first before `limit` applies; `truncated` is then exact. Without a
    window the Mercury API `desc` order is returned as is. Use this for
    one treasury account's ledger; use `list_transactions` for the
    organization's bank-account transactions.
    

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": {
      "entity": "<entity>",
      "treasury_id": "<treasury_id>"
    },
    "name": "list_treasury_transactions"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoLatest canonicalDay, YYYY-MM-DD (inclusive).
limitNoMaximum transactions to return (windowed: newest first; else Mercury API desc order).
startNoEarliest canonicalDay, YYYY-MM-DD (inclusive).
entityYesExact `entity` key from `list_entities`, not its `display_name`. Required; there is no default.
treasury_idYesTreasury account id from `list_treasury`.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.6
    • changedInput schema / properties / entity / description
      Previous value: -"Entity key from `list_entities`. Required; there is no default."New value: +"Exact `entity` key from `list_entities`, not its `display_name`. Required; there is no default."
  2. First observedv0.1.4

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare read-only, idempotent, non-destructive, open-world. The description adds substantive behavior the annotations cannot convey: the API has no date filters and no documented sort key, so a `start`/`end` request walks the entire ledger up to 200 pages of 1000, filters on `canonicalDay` client-side, sorts newest first, and only then applies `limit`, making `truncated` exact. That is a real cost and result-shape disclosure an agent needs before calling.

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?

Front-loaded with the core scope and routing, then the behavioral caveat; every sentence carries information. The second sentence is dense and run-on, stacking paging, filtering, sorting, limit, and truncation into one clause chain, which makes it harder to parse than it needs to be.

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?

For a 5-parameter read tool with an output schema and full annotation coverage, this is complete: scope, alternative, pagination cost, sort/filter order, and limit semantics are all covered, and return values are handled by the output schema.

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 baseline would be 3, but the description explains the interaction semantics the schema cannot: `start`/`end` are applied locally against `canonicalDay`, `limit` is applied after client-side sorting, and `truncated` becomes exact in that mode. It also names the upstream source ids (`list_entities`, `list_treasury`) via schema. Slightly short of 5 because the exact inclusive/exclusive boundary is only in the schema, not reinforced.

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 plus scope: one treasury account's ledger transactions, in Mercury API `desc` order, optionally day-ranged. It explicitly contrasts with `list_transactions` for organization bank-account transactions, so an agent can disambiguate the two without opening either schema.

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?

Gives an explicit routing rule: use this for one treasury account's ledger, use `list_transactions` for the organization's bank-account transactions. It also states the trade-off condition (with a window the whole ledger is walked; without one the API order is returned as is), so the agent knows when the expensive path is triggered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.