# BRAINIAC Portfolio Analytics

> Paid Portfolio Analytics API via x402. Unpaid tool calls return 402.

- name: software.brainiac/portfolio-analytics
- version: 1.0.1
- connection class: R0 (autonomous)
- trust: 83/100 flags: no-repository
- quality: 80/100 (good)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/software.brainiac%2Fportfolio-analytics
- tools: https://api.protogrid.dev/v1/servers/software.brainiac%2Fportfolio-analytics/tools

**An agent can connect right now, no human step.** Remote endpoint, no authentication, reachable on the last probe.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "portfolio-analytics": {
      "type": "http",
      "url": "https://www.brainiac.software/mcp/portfolio-analytics"
    }
  }
}
```


## Trust

- hygiene: 80
- liveness: 100
- freshness: 100
- provenance: 55
- drivers: +dns-namespace +website +reachable +uptime-100% +updated-10d-ago -no-repository
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 80/100 (good)

### protocol: 75 (weight 25)

- warn `protocol.modern`: newest supported version is 2025-11-25; 2026-07-28 not supported, older versions are deprecated until 2027-07-28
- n/a `protocol.stateless`: only applies to 2026-07-28 servers
- pass `protocol.transport`: streamable HTTP
- n/a `protocol.list_ttl`: only applies to 2026-07-28 servers

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 100 (weight 30)

- pass `tools.descriptions`: every tool has a description
- pass `tools.description_length`: descriptions are concise
- pass `tools.schemas`: every tool has an object input schema
- pass `tools.annotations`: 16 of 16 tools declare readOnlyHint or destructiveHint
- pass `tools.directory_hints`: every tool declares readOnlyHint, destructiveHint, idempotentHint and openWorldHint
- pass `tools.token_cost`: about 7,561 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump
- pass `tools.hidden_text`: no hidden text in tool names, descriptions, schemas or annotations
- pass `tools.poisoning`: no instructions aimed at the model in tool definitions

### stability: 50 (weight 15)

- warn `stability.changes`: 61 tool changes in 30 days
- fail `stability.rug_pull`: 35 tools kept their name but changed most of their description in 30 days; review before trusting them
- pass `stability.new_links`: no tool change named a new site

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: no npm or PyPI package

- tools: 16, about 7,561 tokens to load them all
- tool set hash: 04ca12cd0428c84f955eab77b553f8dc
- tools last changed: 2026-11-25T18:18:26.010Z
- badge: [![protogrid quality](https://protogrid.dev/badge/software.brainiac/portfolio-analytics.svg)](https://protogrid.dev/servers/software.brainiac/portfolio-analytics)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Definition changes

- 2026-11-25 `contact_us` added no new version (still 1.0.0)
  - How to contact BRAINIAC.software support: email, page URL, what to include in a message, and what not to send. Free. Does not send email.
- 2026-11-23 `portfolio-analytics_allocation-xray` changed (description, outputSchema) **meaning changed**
  - before: Aggregate caller-supplied fund look-through holdings by asset class, sector, region and top underlying positions when analysing portfolio risk or weights. Call with positions; optional top. Returns total, byAssetClass, bySector, byRegion, and topUnderlying (byAssetClass includes equity, bond). Caller-supplied data only; no network or chain queries. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when analysing portfolio risk or weights, positions, top, total, byAssetClass, bySector, byRegion, topUnderlying, Look-through allocation x-ray, allocation xray.
  - after: Aggregate caller-supplied fund look-through holdings by asset class, sector, region and top underlying positions. Docs: https://www.brainiac.software/api/portfolio-analytics/allocation-xray Keywords: when analysing portfolio risk or weights, positions, top, total, byAssetClass, bySector, byRegion, topUnderlying, Look-through allocation x-ray, allocation xray.
- 2026-11-23 `portfolio-analytics_tracking-error-capture` changed (description, outputSchema)
  - before: Tracking error, information ratio, up/down capture, batting average and optional active share versus a benchmark when analysing portfolio risk or weights. Call with portfolio and benchmark; optional periodsPerYear, holdings, captureMethod. Returns trackingError, informationRatio, upCapture, downCapture, battingAverage, and activeShare. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when analysing portfolio risk or weights, benchmark, periodsPerYear, holdings, captureMethod, trackingError, informationRatio, upCapture, downCapture, battingAverage, activeShare, Tracking error and capture ratios, tracking error capture.
  - after: Tracking error, information ratio, up/down capture, batting average and optional active share versus a benchmark. Docs: https://www.brainiac.software/api/portfolio-analytics/tracking-error-capture Keywords: when analysing portfolio risk or weights, benchmark, periodsPerYear, holdings, captureMethod, trackingError, informationRatio, upCapture, downCapture, battingAverage, activeShare, Tracking error and capture ratios, tracking error capture.
- 2026-11-23 `portfolio-analytics_fee-drag-project` changed (description, outputSchema)
  - before: Compare terminal wealth with and without expense ratios, advisory fees and loads under multiplicative or subtractive fee methods when analysing portfolio risk or weights. Call with initial, years, and grossReturn; optional annualContribution, fees, frontLoad, feeMethod, includeByYear. Returns terminalNoFees, terminalWithFees, feeDrag, feeDragPct, and byYear. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when analysing portfolio risk or weights, initial, years, grossReturn, annualContribution, fees, frontLoad, feeMethod, includeByYear, terminalNoFees, terminalWithFees, feeDrag, feeDragPct, byYear, Project long-run fee drag.
  - after: Compare terminal wealth with and without expense ratios, advisory fees and loads under multiplicative or subtractive fee methods. Docs: https://www.brainiac.software/api/portfolio-analytics/fee-drag-project Keywords: when analysing portfolio risk or weights, initial, years, grossReturn, annualContribution, fees, frontLoad, feeMethod, includeByYear, terminalNoFees, terminalWithFees, feeDrag, feeDragPct, byYear, Project long-run fee drag.
- 2026-11-23 `portfolio-analytics_wash-sale-detect` changed (description, outputSchema) **meaning changed**
  - before: Flag IRC §1091 wash sales in caller transactions with FIFO lots, disallowed losses and replacement basis adjustments per IRS Publication 550 when analysing portfolio risk or weights. Call with transactions; optional identicalGroups, lotMethod. Returns washSales and allowedLosses. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Carrying a payment-signature is not yet a charge. Settlement happens only on HTTP 2xx. Keywords: when analysing portfolio risk or weights, transactions, identicalGroups, lotMethod, washSales, allowedLosses, Detect potential US wash sales, wash sale detect.
  - after: Flag IRC §1091 wash sales in caller transactions with FIFO lots, disallowed losses and replacement basis adjustments per IRS Publication 550. Docs: https://www.brainiac.software/api/portfolio-analytics/wash-sale-detect Keywords: when analysing portfolio risk or weights, transactions, identicalGroups, lotMethod, washSales, allowedLosses, Detect potential US wash sales, wash sale detect.
- 2026-11-23 `portfolio-analytics_monte-carlo-goal` changed (description, outputSchema)
  - before: Project a contribution/withdrawal plan with mulberry32 Monte Carlo paths and report success probability and terminal wealth percentiles when analysing portfolio risk or weights. Call with startValue, years, meanReturn, and volatility; optional annualContribution, annualWithdrawal, timing, inflation, paths, seed and others. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when analysing portfolio risk or weights, startValue, years, meanReturn, volatility, annualContribution, annualWithdrawal, timing, inflation, paths, seed, percentiles, successProbability, terminalPercentiles, medianDepletionYear.
  - after: Project a contribution/withdrawal plan with mulberry32 Monte Carlo paths and report success probability and terminal wealth percentiles. Docs: https://www.brainiac.software/api/portfolio-analytics/monte-carlo-goal Keywords: when analysing portfolio risk or weights, startValue, years, meanReturn, volatility, annualContribution, annualWithdrawal, timing, inflation, paths, seed, percentiles, successProbability, terminalPercentiles, medianDepletionYear.
- 2026-11-23 `portfolio-analytics_stress-test` changed (description, outputSchema) **meaning changed**
  - before: Apply caller-defined asset-class, factor and rate shocks to holdings and report P/L by holding and in total when analysing portfolio risk or weights. Call with holdings and scenarios. Returns scenarios (scenarios includes name, pnl, pnlPct, byHolding, unmapped). Caller-supplied data only; no network or chain queries. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when analysing portfolio risk or weights, holdings, scenarios, Scenario stress test on holdings, stress test, Portfolio Analytics, scenarios.name, scenarios.pnl.
  - after: Apply caller-defined asset-class, factor and rate shocks to holdings and report P/L by holding and in total. Docs: https://www.brainiac.software/api/portfolio-analytics/stress-test Keywords: when analysing portfolio risk or weights, holdings, scenarios, Scenario stress test on holdings, stress test, Portfolio Analytics, scenarios.name, scenarios.pnl.
- 2026-11-23 `portfolio-analytics_correlation-matrix` changed (description, outputSchema)
  - before: Pearson and Spearman correlation, optional covariance, rolling windows and Ledoit-Wolf shrinkage covariance from caller series when analysing portfolio risk or weights. Call with series; optional methods, missing, rollingWindow. Returns pairCounts, pearson, psd, spearman, and ledoitWolf (ledoitWolf includes shrinkage, covariance). HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when analysing portfolio risk or weights, series, methods, missing, rollingWindow, pairCounts, pearson, psd, spearman, ledoitWolf, Correlation and Ledoit-Wolf covariance, correlation matrix.
  - after: Pearson and Spearman correlation, optional covariance, rolling windows and Ledoit-Wolf shrinkage covariance from caller series. Docs: https://www.brainiac.software/api/portfolio-analytics/correlation-matrix Keywords: when analysing portfolio risk or weights, series, methods, missing, rollingWindow, pairCounts, pearson, psd, spearman, ledoitWolf, Correlation and Ledoit-Wolf covariance, correlation matrix.
- 2026-11-23 `portfolio-analytics_rebalance-trades` changed (description, outputSchema)
  - before: Compute buys and sells that restore target weights with tolerance bands, a cash buffer, minimum trade size and whole-share rounding when analysing portfolio risk or weights. Call with holdings and targets; optional cash, band, cashBuffer, minTradeValue, fractional, restricted. Returns totalValue, investable, trades, untouched, cashAfter, and weightsAfter. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when analysing portfolio risk or weights, holdings, targets, cash, band, cashBuffer, minTradeValue, fractional, restricted, totalValue, investable, trades, untouched, cashAfter, weightsAfter.
  - after: Compute buys and sells that restore target weights with tolerance bands, a cash buffer, minimum trade size and whole-share rounding. Docs: https://www.brainiac.software/api/portfolio-analytics/rebalance-trades Keywords: when analysing portfolio risk or weights, holdings, targets, cash, band, cashBuffer, minTradeValue, fractional, restricted, totalValue, investable, trades, untouched, cashAfter, weightsAfter.
- 2026-11-23 `portfolio-analytics_risk-parity-weights` changed (description, outputSchema) **meaning changed**
  - before: Spinu ERC (or caller risk-budget) weights and inverse-volatility weights with risk-contribution breakdown when analysing portfolio risk or weights. Call with assets and covariance; optional riskBudget, method. Returns weights, riskContributions, portfolioVolatility, inverseVolatility, iterations, and converged. Caller-supplied data only; no network or chain queries. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when analysing portfolio risk or weights, assets, covariance, riskBudget, method, weights, riskContributions, portfolioVolatility, inverseVolatility, iterations, converged, risk parity weights.
  - after: Spinu ERC (or caller risk-budget) weights and inverse-volatility weights with risk-contribution breakdown. Docs: https://www.brainiac.software/api/portfolio-analytics/risk-parity-weights Keywords: when analysing portfolio risk or weights, assets, covariance, riskBudget, method, weights, riskContributions, portfolioVolatility, inverseVolatility, iterations, converged, risk parity weights.

Full history: https://api.protogrid.dev/v1/servers/software.brainiac%2Fportfolio-analytics/changes

## Remotes

- https://www.brainiac.software/mcp/portfolio-analytics (streamable-http, auth none, reachable true, uptime30d 1)

## Packages

_none_

## Tools (16)

- `contact_us`: How to contact BRAINIAC.software support: email, page URL, what to include in a message, and what not to send. Free. Does not send email.
- `portfolio-analytics_allocation-xray`: Aggregate caller-supplied fund look-through holdings by asset class, sector, region and top underlying positions. Docs: https://www.brainiac.software/api/portfolio-analytics/allocation-xray Keywords: when analysing portfolio risk or weights, positions, top, total, byAssetClass, bySector, byRegion, topUnderlying, Look-through allocation x-ray, allocation xray.
- `portfolio-analytics_brinson-attribution`: Allocation, selection and interaction effects by segment for one or more periods, with optional Carino linking. Docs: https://www.brainiac.software/api/portfolio-analytics/brinson-attribution Keywords: when analysing portfolio risk or weights, periods, linking, normalizeWeights, allowNegativeWeights, portfolioReturn, benchmarkReturn, activeReturn, segments, totals, Brinson-Fachler attribution, brinson attribution.
- `portfolio-analytics_correlation-matrix`: Pearson and Spearman correlation, optional covariance, rolling windows and Ledoit-Wolf shrinkage covariance from caller series. Docs: https://www.brainiac.software/api/portfolio-analytics/correlation-matrix Keywords: when analysing portfolio risk or weights, series, methods, missing, rollingWindow, pairCounts, pearson, psd, spearman, ledoitWolf, Correlation and Ledoit-Wolf covariance, correlation matrix.
- `portfolio-analytics_factor-regression`: OLS of portfolio excess returns on caller-supplied factors with intercept, betas, alpha and optional Newey-West standard errors. Docs: https://www.brainiac.software/api/portfolio-analytics/factor-regression Keywords: when analysing portfolio risk or weights, returns, factors, riskFree, periodsPerYear, neweyWestLags, alphaPerPeriod, alphaAnnualized, betas, alphaSe, rSquared, Factor regression of excess returns, factor regression.
- `portfolio-analytics_fee-drag-project`: Compare terminal wealth with and without expense ratios, advisory fees and loads under multiplicative or subtractive fee methods. Docs: https://www.brainiac.software/api/portfolio-analytics/fee-drag-project Keywords: when analysing portfolio risk or weights, initial, years, grossReturn, annualContribution, fees, frontLoad, feeMethod, includeByYear, terminalNoFees, terminalWithFees, feeDrag, feeDragPct, byYear, Project long-run fee drag.
- `portfolio-analytics_mean-variance-optimize`: Minimum variance, target return, max Sharpe or target volatility portfolios from expected returns and a covariance matrix, with bounds. Docs: https://www.brainiac.software/api/portfolio-analytics/mean-variance-optimize Keywords: when analysing portfolio risk or weights, assets, expectedReturns, objective, covariance, returns, targetReturn, targetVolatility, riskFree, bounds, groups, frontierPoints, shrinkage, weights, expectedReturn.
- `portfolio-analytics_monte-carlo-goal`: Project a contribution/withdrawal plan with mulberry32 Monte Carlo paths and report success probability and terminal wealth percentiles. Docs: https://www.brainiac.software/api/portfolio-analytics/monte-carlo-goal Keywords: when analysing portfolio risk or weights, startValue, years, meanReturn, volatility, annualContribution, annualWithdrawal, timing, inflation, paths, seed, percentiles, successProbability, terminalPercentiles, medianDepletionYear.
- `portfolio-analytics_performance-twr-mwr`: Compute linked TWR, Modified Dietz and XIRR from valuations and external cash flows, with optional annualisation. Docs: https://www.brainiac.software/api/portfolio-analytics/performance-twr-mwr Keywords: when analysing portfolio risk or weights, valuations, flows, annualize, twr, modifiedDietz, xirr, days, subPeriods, Time-weighted and money-weighted returns, performance twr mwr.
- `portfolio-analytics_rebalance-trades`: Compute buys and sells that restore target weights with tolerance bands, a cash buffer, minimum trade size and whole-share rounding. Docs: https://www.brainiac.software/api/portfolio-analytics/rebalance-trades Keywords: when analysing portfolio risk or weights, holdings, targets, cash, band, cashBuffer, minTradeValue, fractional, restricted, totalValue, investable, trades, untouched, cashAfter, weightsAfter.
- `portfolio-analytics_risk-metrics`: Annualised volatility, Sharpe, Sortino, Calmar, max drawdown with peak/trough/recovery indices, skewness and excess kurtosis from a return series. Docs: https://www.brainiac.software/api/portfolio-analytics/risk-metrics Keywords: when analysing portfolio risk or weights, returns, periodsPerYear, riskFreePerPeriod, mar, volatility, annualReturn, sharpe, sortino, maxDrawdown, drawdownPeakIndex, drawdownTroughIndex, recoveryIndex, calmar, skewness.
- `portfolio-analytics_risk-parity-weights`: Spinu ERC (or caller risk-budget) weights and inverse-volatility weights with risk-contribution breakdown. Docs: https://www.brainiac.software/api/portfolio-analytics/risk-parity-weights Keywords: when analysing portfolio risk or weights, assets, covariance, riskBudget, method, weights, riskContributions, portfolioVolatility, inverseVolatility, iterations, converged, risk parity weights.
- `portfolio-analytics_stress-test`: Apply caller-defined asset-class, factor and rate shocks to holdings and report P/L by holding and in total. Docs: https://www.brainiac.software/api/portfolio-analytics/stress-test Keywords: when analysing portfolio risk or weights, holdings, scenarios, Scenario stress test on holdings, stress test, Portfolio Analytics, scenarios.name, scenarios.pnl.
- `portfolio-analytics_tracking-error-capture`: Tracking error, information ratio, up/down capture, batting average and optional active share versus a benchmark. Docs: https://www.brainiac.software/api/portfolio-analytics/tracking-error-capture Keywords: when analysing portfolio risk or weights, benchmark, periodsPerYear, holdings, captureMethod, trackingError, informationRatio, upCapture, downCapture, battingAverage, activeShare, Tracking error and capture ratios, tracking error capture.
- `portfolio-analytics_var-cvar`: Historical, parametric normal and Monte Carlo VaR/ES at caller confidence levels from a return series. Docs: https://www.brainiac.software/api/portfolio-analytics/var-cvar Keywords: when analysing portfolio risk or weights, returns, confidence, methods, portfolioValue, horizonPeriods, simulations, seed, results, Value-at-Risk and Expected Shortfall, var cvar.
- `portfolio-analytics_wash-sale-detect`: Flag IRC §1091 wash sales in caller transactions with FIFO lots, disallowed losses and replacement basis adjustments per IRS Publication 550. Docs: https://www.brainiac.software/api/portfolio-analytics/wash-sale-detect Keywords: when analysing portfolio risk or weights, transactions, identicalGroups, lotMethod, washSales, allowedLosses, Detect potential US wash sales, wash sale detect.
