Skip to main content
Glama

Money flow

money_flow
Read-onlyIdempotent

Read the Trades tab's Money flow card: the cash spent on purchases and raised by sales per week, month or year, from the same rows as the Recent trades card. period is 'week' (ISO weeks, Monday start), 'month' (calendar months, the default) or 'year' (calendar years, the current one to date); count is how many periods back, up to and including the current one (1-260; default 26 weeks, 24 months or 10 years, the card's own). Each item is one period, newest first: start (the period's first day), purchases (the card's Purchases bar) and sales (its Sales bar) — the display-currency cash at each trade's own date, fees included where the broker reports them — net = sales − purchases (the Net line: positive when the period sold more than it bought), buys, sells and trades (execution counts) and unpriced (trades with no derivable amount: counted, never summed). A period without trades is zeros, not a gap. totals sums the whole window; limit/offset page the periods (nextOffset). Transfers, corrections, staking credits, in-kind fees and corporate actions are not trades and never counted.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "money_flow"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNo
limitNo
offsetNo
periodNo
dashboardIdNoWhich live dashboard (browser tab) runs it; from get_dashboard_state. Optional when one tab stands out: the tab the user last approved an action in, the only live tab, or the only tab on screen. Refused before any approval when the target is ambiguous or disconnected.
idempotencyKeyNo
expectedRevisionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations: it discloses that amounts are display-currency cash converted at each trade's own date, that fees are included where the broker reports them, that empty periods return zeros rather than gaps, and that unpriced trades are counted but never summed. It also enumerates non-trades (transfers, corrections, staking credits, in-kind fees, corporate actions) that are deliberately excluded, which prevents misreading the totals.

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?

Front-loads the resource and period semantics before the item shape and paging. It is dense and parenthetical-heavy, but every clause supplies operational detail (defaults, zero-fill, exclusion list) rather than restating the name or schema, so little could be cut without loss.

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?

Despite seven parameters, no output schema and low schema coverage, the description effectively documents the return shape itself (start, purchases, sales, net, buys, sells, trades, unpriced, totals) and the paging contract. An agent has enough to call it correctly and interpret the response without further inference.

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?

With only 14% schema description coverage the description carries most of the burden, and it does: period is defined per enum value (ISO weeks starting Monday, calendar months as default, calendar years to date), count is defined as periods back with range 1-260 and per-period defaults, and limit/offset are tied to paging with nextOffset. idempotencyKey and expectedRevision are left entirely unexplained in both description and schema.

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 (read) and resource (the Trades tab's Money flow card) with its scope: cash spent on purchases and raised by sales, bucketed by week/month/year. It also anchors the tool to its data source ("the same rows as the Recent trades card"), so an agent can distinguish it from other card-reading siblings 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?

Gives clear context for use: read the Money flow card when the agent needs per-period purchases/sales/net aggregates. It names the adjacent Recent trades card as the data twin, implicitly telling the caller which view answers which question, but it does not state when to prefer a different sibling or when this tool is inappropriate.

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.