mcp-investidor10-wallet

v0.5.0
mcp-investidor10-wallet Checked 4 days ago Published 10 days ago

MCP server that exposes an Investidor10 public wallet, with long-term investor memory and price alerts

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_wallet_summary Get Wallet Summary

Overview of the configured wallet: applied amount, patrimony (equity), variation, and total and 12-month returns. Use this first when the user asks "how is my wallet doing?". The response is a data envelope: always tell the user the data freshness by mentioning `fetched_at` and whether the answer came from the in-memory cache (`cached=true`). On failure this returns {"error": {"code", "message"}} — never invent values. When the envelope has `privacy.masked` true, privacy mode withheld monetary amounts and quantities: work with the percentages and ratios provided and never estimate or recon…

get_wallet_allocation Get Wallet Allocation

Wallet allocation broken down by asset (ticker) and by asset class. Use together with get_wallet_positions to analyze rebalancing: compare each position's percent_wallet against its percent_ideal, order the deviations by magnitude (0.1 percentage-point precision), and when suggesting new contributions prioritize assets below their ideal percent that carry a positive `buy` flag from the source. Never suggest selling an asset unless the user explicitly asks for it; if the wallet is aligned with the ideal, say so instead of forcing suggestions. This is also a data envelope — always mention `fe…

get_wallet_positions Get Wallet Positions

Detailed positions of one asset class of the wallet. When the envelope has `privacy.masked` true, privacy mode withheld monetary amounts and quantities: work with the percentages and ratios provided and never estimate or reconstruct the withheld values. Each position includes quantity, average price, current quote, equity, profitability, percent of wallet (percent_wallet), ideal percent (percent_ideal), fundamental indicators when the class provides them (P/E, P/B, dividend yield, ROE) and the source's buy flag. Positions are in data.data; a class with no positions has data.data=[] (not an e…

ParameterTypeDescription
asset_type *stringOne of Ticker (Brazilian stocks), Fii (real estate funds), Etf (Brazilian ETFs), EtfInternational (international ETFs), Treasure (Brazilian treasury bonds), Crypto. Any case is accepted; other values…

get_asset_quote Get Asset Quote

Current market quote and fundamentals of a ticker (any asset, in the wallet or not): price, day and 12-month variation, Graham and Bazin fair prices, P/E, P/BV, dividend yield and sector. IMPORTANT presentation rules: quotes from the B3 have an inherent delay of ~15 minutes — always state this when giving prices. Always mention `cached`/`fetched_at` (the response is a data envelope). When the ticker is also in the wallet, cross the quote with the position's average price using get_wallet_positions. Unknown tickers return a ticker_not_found error with guidance to check spelling — never gue…

ParameterTypeDescription
ticker *stringAsset ticker (e.g. PETR4, MXRF11, IVVB11). Any case accepted.

get_earnings Get Earnings

Earnings (dividends, interest, income) received by the wallet in a period. When privacy mode is on this tool returns a privacy_mode_unavailable error: say so and do not estimate earnings. Presentation rules: present the total (data.sum) for exactly the requested window; this endpoint does not include per-asset earnings. A period without earnings is not an error — state it plainly. Always mention `cached`/`fetched_at`.

ParameterTypeDescription
end_dateYYYY-MM-DD. Must be after start_date — an inverted range returns an invalid_params error (never a silent empty result).
start_dateYYYY-MM-DD. Omit both dates to get the last 12 months.

get_patrimony_history Get Patrimony History

Monthly patrimony evolution over a horizon, separating contributions from capital gains. When privacy mode is on this tool returns a privacy_mode_unavailable error: say so and do not estimate the series. Presentation rules: show the monthly series splitting what was contributed from what the market added; when the user asks "how did my patrimony evolve", propose a horizon if none was given. Always mention `cached`/`fetched_at`.

ParameterTypeDescription
months *integerInteger horizon from 1 to 600 (e.g. 12, 24, 60).

create_price_alert Create Price Alert

Register a price alert for an asset. The alert is evaluated at the start of the NEXT session by get_session_context — there is no continuous monitoring outside sessions (scope of this product). Note: quotes only exist for B3 stocks; alerts on other asset classes stay active but are reported as pending check (asset_type_not_supported).

ParameterTypeDescription
direction *string'above' (notify when price >= limit) or 'below' (notify when price <= limit). Boundaries are inclusive.
limit_price *numberPrice threshold, must be greater than zero.
ticker *stringAsset ticker (uppercase-normalized).

list_price_alerts List Price Alerts

List registered price alerts, optionally filtered by state ('active', 'triggered', 'cancelled').

ParameterTypeDescription
stateOptional filter; omit to list all alerts.

cancel_price_alert Cancel Price Alert

Cancel an active price alert. Triggered or already-cancelled alerts cannot be cancelled.

ParameterTypeDescription
alert_id *integerThe id returned by create_price_alert or list_price_alerts.

get_session_context Get Session Context

Session bootstrap — MUST be called at the very start of every new session, before answering anything about the wallet. Returns the full investor memory (goal, theses grouped by ticker, personal rules, pending decisions, recently communicated insights) AND evaluates the active price alerts against current quotes: satisfied alerts are marked 'triggered' (persisted, terminal — they never fire again) and returned in `triggered_alerts` so you can notify the user at the start of the session, with the alert's registration date and the current price. Alerts whose quote could not be fetched are re…

get_wallet_goal Get Wallet Goal

Read the investor's declared wallet goal (e.g. retirement target).

set_wallet_goal Set Wallet Goal

Set or update the investor's wallet goal. Call when the user states or revises the purpose of the wallet (e.g. 'this wallet is for retirement').

ParameterTypeDescription
text *stringThe goal statement in the user's own words.

save_thesis Save Thesis

Record an investment thesis the user explained for an asset. Call this whenever the user describes WHY they hold (or want) an asset, so it can be recalled in future sessions with its date. The ticker is normalized to uppercase and multiple theses per ticker are kept as history.

ParameterTypeDescription
text *stringThe thesis, in the user's own reasoning.
ticker *stringAsset ticker (e.g. PETR4, MXRF11).

get_theses Get Theses

List recorded investment theses, optionally filtered to one ticker. Call when discussing an asset to recall its thesis with the recording date.

ParameterTypeDescription
tickerOptional ticker filter (any case accepted).

save_rule Save Rule

Record a personal investment rule of the user (e.g. 'only buy with a positive rating', 'minimum dividend yield of 6%'). Call this when the user states a rule that should guide every future suggestion.

ParameterTypeDescription
text *stringThe rule in the user's own words.

get_rules Get Rules

List the user's personal investment rules. Respect them in every suggestion you make.

log_decision Log Decision

Log a recommendation you made or a decision the user made, with today's date and outcome='pending'. ALWAYS log recommendations when you give them, so the outcome can be recorded later and the recommendation is never repeated blindly. Never re-recommend something the user rejected without a new, explicit rationale.

ParameterTypeDescription
content *stringWhat was recommended/decided.
kind *string'recommendation' (yours) or 'user_decision' (theirs).
rationaleOptional reasoning behind it.
tickerOptional related ticker.

record_decision_outcome Record Decision Outcome

Record the outcome of a logged decision when the user tells what they did about it. Outcomes: 'accepted', 'rejected', 'postponed'.

ParameterTypeDescription
decision_id *integerThe id returned by log_decision.
outcome *stringaccepted | rejected | postponed.
noteOptional context (e.g. why it was rejected).

log_insight Log Insight

Log an insight or alert AFTER communicating it to the user, so it is never presented again as new. `fingerprint` is a stable key you derive from the insight content (e.g. 'PETR4:15.2>8.0'). If it was already logged, the response has already_logged=true and NOTHING is duplicated — in that case mention the condition persists instead of alerting again.

ParameterTypeDescription
fingerprint *stringStable dedupe key derived from the insight.
kind *stringInsight category (e.g. concentration_alert, rebalancing).
summary *stringShort description of what was communicated.

open_wallet_setup Open Wallet Setup

Open the local wallet setup page in the user's browser, where the user enters the Investidor10 wallet link (public or restricted) and the privacy mode. It takes no argument: the link never passes through this tool or you. Call it when get_session_context says the configuration is pending, when a wallet tool returns wallet_not_configured or access_denied, or when the user asks to change the wallet link or the privacy mode. Ask the user to paste the link on the page, never in this conversation. If the user pastes a link in the conversation anyway, do not repeat or reuse it: point them to the pa…