Skip to main content
Glama

Broc — Clara & Clive Financial Assistant

Generate Sankey Cash Flow Map (Clara)

get_cash_flow_sankey
Read-only

Generates a normalized monthly Sankey Cash Flow diagram (Income Sources -> Account Hub -> Expense Categories & Net Surplus) from your isolated CSV session, a CSV shared in chat, or sample household data, including an interactive Sankey widget.

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": "get_cash_flow_sankey"
  }
}

Input Schema

NameRequiredDescriptionDefault
csvUrlNoOptional HTTPS URL to a CSV attachment.
csvTextNoOptional raw CSV statement text if analyzing directly without calling analyze_bank_csv first.
fileNameNoOptional filename hint when passing CSV data directly.
csvBase64NoOptional base64-encoded CSV file content.
sessionIdNoSession ID from a previous analyze_bank_csv call on this connection (defaults to "default"; falls back to sample data if none loaded).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint true, destructiveHint false, openWorldHint true), so the description's job is added behavior — and it delivers: output is normalized monthly flows plus an interactive widget, and it discloses a silent fallback to sample data when no session data exists. Return-format detail (pagination, exact widget payload) is absent, but the fallback disclosure is the operationally important fact.

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?

A single dense sentence that is front-loaded with the verb and result and packs the flow topology and input modes without filler. It is long but every clause carries information; a short lead sentence or source list would improve scannability slightly.

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?

With no output schema, the description correctly takes on the burden of describing the return value (a normalized Sankey diagram plus interactive widget), and the fallback-to-sample behavior is stated. Minor gaps remain around what happens when multiple CSV inputs are supplied simultaneously.

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 all five parameters documented, so the schema carries parameter meaning and the 3 baseline applies. The description loosely maps its three stated sources onto csvUrl/csvText/sessionId and reinforces the sample-data fallback, but adds no format or precedence rules beyond the schema.

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 and resource ('Generates a normalized monthly Sankey Cash Flow diagram') and even names the flow structure (Income Sources -> Account Hub -> Expense Categories & Net Surplus), so the agent knows exactly what artifact comes back. It does not explicitly differentiate from siblings such as get_sample_spending_analysis or analyze_bank_csv, which keeps it below 5.

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?

It lists the three accepted data situations (isolated CSV session, CSV shared in chat, sample household data), which implicitly tells the agent when the tool is usable. However, it never gives an explicit when-to-use/when-not rule or names the sibling to call first to prepare a session.

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