Skip to main content
Glama

Record a deposit or withdrawal

record_cash_movement

Record a deposit or a withdrawal the signed-in user made at their broker, in one of their InvestIQ portfolios (the primary one unless a portfolio name is given). It updates the portfolio's cash and the performance maths (returns stay neutral to deposits and withdrawals). It RECORDS a movement for tracking — it never moves money. Example: "I deposited 500 EUR on Revolut today" → kind deposit, amount 500, currency EUR, portfolio "Revolut".

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": {
      "kind": "<kind>",
      "amount": "<amount>"
    },
    "name": "record_cash_movement"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoYYYY-MM-DD, default today. Not in the future.
kindYesMoney in (deposit) or out (withdrawal).
noteNoOptional note (max 200 characters).
amountYesAmount, in `currency`.
currencyNoISO code, e.g. EUR, USD, GBP. Defaults to the portfolio's currency.
portfolioNoPortfolio name; default the primary portfolio.

Output Schema

NameRequiredDescriptionDefault
okYesfalse on an error; then `error` says what happened and what to do.
cardNoThe in-chat InvestIQ card, in English and French.
dataNoThe tool's own result fields.
toolYes
as_ofYesISO time the data was computed (a stored analysis: when it was computed).
errorNo
linksNoInvestIQ pages for this result.
degradedNotrue when part of the data was missing.
viz_specNoThe recommended chart's series (data only).
disclaimerYes
data_qualityNoWhat was requested, what was used, and why anything was left out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare the generic profile (not read-only, not destructive, not idempotent, closed-world). The description adds real behavioral context beyond them: the portfolio's cash changes and the performance maths are adjusted so returns stay neutral to deposits and withdrawals, and no actual money moves. It does not warn that repeated identical calls create duplicate records despite idempotentHint=false, which is the remaining gap.

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?

Three tight sentences plus one example, all front-loaded with the operation and its scope. The clarifying line about recording versus moving money and the example both earn their space; there is no filler.

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?

With an output schema present, return values need no explanation, and 100% parameter coverage means the description need not re-document fields. It supplies the side-effect and defaulting context an agent needs to call this write tool correctly, so nothing material is missing.

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 the schema already carries defaults for date, currency, and portfolio. The description's example does add a small amount of interpretive value by showing how a spoken portfolio name maps to the portfolio field, but otherwise it restates schema-documented defaults rather than extending them.

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?

The description opens with a specific verb and resource — recording a deposit or withdrawal the signed-in user made at their broker — and scopes it to one InvestIQ portfolio. It further disambiguates the nature of the operation by stressing it RECORDS a movement and never moves money, which no sibling tool could be confused with.

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?

It gives a concrete trigger with a worked example ("I deposited 500 EUR on Revolut today") and states the defaulting behavior (primary portfolio unless a name is given). It does not explicitly name when not to use it or point at an alternative tool, but the record-only framing covers the main misuse risk.

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