Skip to content
TotalFinance

portfolio · wire operation

Analyze a portfolio (snapshot, timeline, monitor)

One report of up to three direct results: the valuation snapshot at `asOf` (always), the dated timeline with P&L since each prior mark and drawdown (when `marks` are supplied), and the policy monitor with its alerts and carried state (when `monitor` is supplied). Each result is the direct function verbatim; nothing is aggregated across them, and one `assumptions` says which parts ran and why the others did not.

totalfinance.portfolio.analyze
MCP tool name
totalfinance_portfolio_analyze
Pack / profiles
portfolio / full, portfolio
Default discovery
Opt-in (select its pack or profile)
Required capabilities
None
Effects / authorization
none / none
Cost / cancellation
medium / Do not assume inline interruption
Handle-eligible inputs
ledger, market
Idempotency
not-applicable

Input schema

FieldTypeMeaning
ledgerRequiredobjectA serialized portfolio ledger (totalfinance.portfolio-ledger, the FC7 JSON form)
asOfRequirednumber | stringThe valuation and monitoring instant
marketRequiredobjectA Gate B market snapshot (totalfinance.market-snapshot); its interior is re-validated by the read door
currencyConversionsOptionalobject[]—
instrumentClassificationOptionalobjectIdentity metadata per instrument for grouping; unknown instruments group as unclassified
marksOptionalobject[]At least two dated marks, strictly ascending — adds portfolioTimeline when supplied
monitorOptionalobjectmonitorPortfolio inputs beyond the shared portfolio / market / asOf / currencyConversions
Complete JSON Schema

Loading…

Output schema

FieldTypeMeaning
snapshotRequiredobjectportfolioSnapshot(...) verbatim
timelineRequiredobject | nullportfolioTimeline(...) verbatim, or null when no marks were supplied
monitorRequiredobject | nullmonitorPortfolio(...) verbatim, or null when no monitor request was supplied
assumptionsRequiredobjectApplied conventions
diagnosticsRequiredobjectEngine, method, warnings
Complete JSON Schema

Loading…