Koskamo

PortfolioFit MCP

PortfolioFit MCP allows AI assistants to connect to PortfolioFit for evidence-aware portfolio checks. It enables users to evaluate portfolio alignment against mandates, calculate allocation constraints, list analytics portfolios, and upload historical data series. The server handles normalized holdings and mandates, providing deterministic calculations and model-assisted qualitative analysis while ensuring no direct trading or brokerage access.

Endpoint and access

No sign-in to connect and list tools. Individual tools may still need a vendor account, credentials, or permissions; check the documented prerequisites.

PortfolioFit MCP logo, by PortfolioFitVendor evidenceStreamable HTTPNo sign-inEndpoint checked 2026-11-23Operated by PortfolioFit
You need:OAuth sign-in only Your client opens PortfolioFit in a browser so you can sign in and approve access.Client availability can depend on your plan, application version, workspace policy, and administrator settings.Add the endpoint, complete the browser-based PortfolioFit sign-in, and approve the requested scopes requested by each toolcomplete the OAuth flow
MCP endpoint (Streamable HTTP)
https://portfolio.fit/mcp
Vendor documentation

What its tools do

10 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.

10 of 10 have a description · 10 of 10 declare behavior hints · 0 of 9 with parameters document them all

Checks and signals

Each line is separate evidence, not a trust score.

  • Passed Endpoint answered the live check ·
  • Passed Official MCP Registry namespace is tied to portfolio.fit ·
  • Passed Endpoint is on the registry namespace domain ·
  • Uptime 100% over 90 days
  • Availability 2 of 2 checks passed in 30 days

What you can do with it

  • Evaluate portfolio alignment against specific mandates
  • Calculate explicit concentration and exposure limits
  • List owned portfolios and analytics datasets
  • Upload canonical historical portfolio series rows

Source and maintenance

Vendor evidenceRegistry 0.1.3

Protocol and capabilities

Server
PortfolioFit 2.2.0
MCP protocol negotiated in check
2025-11-25
Tools
10 advertised
Resources
0 advertised
Resource templates
0 advertised
Prompts
0 advertised
Server-advertised capabilities
{
  "tools": {
    "listChanged": false
  },
  "prompts": {
    "listChanged": false
  },
  "resources": {
    "subscribe": false,
    "listChanged": false
  },
  "experimental": {}
}

Server-provided instructions

Untrusted server output shown for inspection. It is not Koskamo guidance and is excluded from knowledge search.

Run mandate checks and historical portfolio calculations. Upload normalized series or discover confirmed profiles, review semantics only when required, then calculate. The statistics metrics schema describes supported calculations and required benchmarks and rates. An optional analysis_name groups related calls for this user. Extract and normalize documents locally before calling tools.

Tools

10 advertised

list_analysis_portfolios — List analysis portfolios
Advertised by the server during the last successful anonymous check.
Advertised read-only

List owner-scoped portfolios, analytics datasets, and profile readiness.

list_analysis_portfolios input schema
{
  "type": "object",
  "title": "list_analysis_portfoliosArguments",
  "properties": {}
}
list_analysis_portfolios output schema
{
  "type": "object",
  "title": "AnalysisPortfolioListOutput",
  "required": [
    "portfolios"
  ],
  "properties": {
    "portfolios": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      },
      "title": "Portfolios"
    }
  },
  "additionalProperties": false
}
list_analysis_portfolios annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
list_portfolio_series — List portfolio series
Advertised by the server during the last successful anonymous check.
Advertised read-only

Discover owner-scoped immutable series profiles and their exact dataset versions. This returns metadata and coverage only, never dataset rows.

list_portfolio_series input schema
{
  "type": "object",
  "title": "list_portfolio_seriesArguments",
  "properties": {
    "cursor": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Cursor",
      "default": null
    },
    "statuses": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "enum": [
              "proposed",
              "confirmed"
            ],
            "type": "string"
          },
          "maxItems": 2
        },
        {
          "type": "null"
        }
      ],
      "title": "Statuses",
      "default": null
    },
    "page_size": {
      "type": "integer",
      "title": "Page Size",
      "default": 50,
      "maximum": 100,
      "minimum": 1
    },
    "portfolio_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Portfolio Id",
      "default": null
    }
  }
}
list_portfolio_series output schema
{
  "type": "object",
  "title": "PortfolioSeriesListOutput",
  "required": [
    "series"
  ],
  "properties": {
    "series": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      },
      "title": "Series"
    },
    "next_cursor": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Next Cursor",
      "default": null
    }
  },
  "additionalProperties": false
}
list_portfolio_series annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
list_analyses — List analyses
Advertised by the server during the last successful anonymous check.
Advertised read-only

Read private calculation groups and independent operations. Filter by kind, portfolio, dates, ready/running/attention status or legacy open/finished status.

list_analyses input schema
{
  "type": "object",
  "title": "list_analysesArguments",
  "properties": {
    "kind": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Kind",
      "default": null
    },
    "page": {
      "type": "integer",
      "title": "Page",
      "default": 1,
      "minimum": 1
    },
    "status": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Status",
      "default": null
    },
    "date_to": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Date To",
      "default": null
    },
    "date_from": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Date From",
      "default": null
    },
    "page_size": {
      "type": "integer",
      "title": "Page Size",
      "default": 20,
      "maximum": 100,
      "minimum": 1
    },
    "portfolio_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Portfolio Id",
      "default": null
    }
  }
}
list_analyses output schema
{
  "type": "object",
  "$defs": {
    "AnalysisSummaryOutput": {
      "type": "object",
      "title": "AnalysisSummaryOutput",
      "required": [
        "analysis_id",
        "title",
        "url",
        "status",
        "kinds",
        "needs_attention",
        "portfolios",
        "step_count",
        "started_at",
        "updated_at"
      ],
      "properties": {
        "url": {
          "type": "string",
          "title": "Url"
        },
        "kinds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Kinds"
        },
        "title": {
          "type": "string",
          "title": "Title"
        },
        "status": {
          "type": "string",
          "title": "Status"
        },
        "portfolios": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true
          },
          "title": "Portfolios"
        },
        "started_at": {
          "type": "string",
          "title": "Started At",
          "format": "date-time"
        },
        "step_count": {
          "type": "integer",
          "title": "Step Count"
        },
        "updated_at": {
          "type": "string",
          "title": "Updated At",
          "format": "date-time"
        },
        "analysis_id": {
          "type": "string",
          "title": "Analysis Id"
        },
        "finished_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Finished At",
          "default": null
        },
        "needs_attention": {
          "type": "boolean",
          "title": "Needs Attention"
        },
        "idempotent_replay": {
          "type": "boolean",
          "title": "Idempotent Replay",
          "default": false
        }
      }
    }
  },
  "title": "AnalysisListOutput",
  "required": [
    "analyses",
    "page",
    "page_size",
    "total",
    "has_more"
  ],
  "properties": {
    "page": {
      "type": "integer",
      "title": "Page"
    },
    "total": {
      "type": "integer",
      "title": "Total"
    },
    "analyses": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AnalysisSummaryOutput"
      },
      "title": "Analyses"
    },
    "has_more": {
      "type": "boolean",
      "title": "Has More"
    },
    "page_size": {
      "type": "integer",
      "title": "Page Size"
    }
  }
}
list_analyses annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
get_analysis — Get an analysis
Advertised by the server during the last successful anonymous check.
Advertised read-only

Read retained normalized inputs, operations, results and owner-scoped dataset references. This is not an external agent transcript.

get_analysis input schema
{
  "type": "object",
  "title": "get_analysisArguments",
  "required": [
    "analysis_id"
  ],
  "properties": {
    "analysis_id": {
      "type": "string",
      "title": "Analysis Id",
      "format": "uuid"
    }
  }
}
get_analysis output schema
{
  "type": "object",
  "title": "AnalysisDetailOutput",
  "required": [
    "analysis_id",
    "title",
    "url",
    "status",
    "kinds",
    "needs_attention",
    "portfolios",
    "step_count",
    "started_at",
    "updated_at",
    "steps",
    "retention_days"
  ],
  "properties": {
    "url": {
      "type": "string",
      "title": "Url"
    },
    "kinds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "title": "Kinds"
    },
    "steps": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      },
      "title": "Steps"
    },
    "title": {
      "type": "string",
      "title": "Title"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "portfolios": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      },
      "title": "Portfolios"
    },
    "started_at": {
      "type": "string",
      "title": "Started At",
      "format": "date-time"
    },
    "step_count": {
      "type": "integer",
      "title": "Step Count"
    },
    "updated_at": {
      "type": "string",
      "title": "Updated At",
      "format": "date-time"
    },
    "analysis_id": {
      "type": "string",
      "title": "Analysis Id"
    },
    "finished_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Finished At",
      "default": null
    },
    "retention_days": {
      "type": "integer",
      "title": "Retention Days"
    },
    "needs_attention": {
      "type": "boolean",
      "title": "Needs Attention"
    },
    "idempotent_replay": {
      "type": "boolean",
      "title": "Idempotent Replay",
      "default": false
    }
  }
}
get_analysis annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
evaluate_portfolio_alignment — Evaluate portfolio alignment
Advertised by the server during the last successful anonymous check.

Compare a clean mandate with normalized holdings. Do not send PDF, CSV, spreadsheet, or factsheet files; extract them before calling.

evaluate_portfolio_alignment input schema
{
  "type": "object",
  "$defs": {
    "AlignmentRule": {
      "type": "object",
      "title": "AlignmentRule",
      "required": [
        "target",
        "operator"
      ],
      "properties": {
        "id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Id",
          "default": null
        },
        "unit": {
          "type": "string",
          "title": "Unit",
          "default": "percent",
          "maxLength": 64
        },
        "title": {
          "type": "string",
          "title": "Title",
          "default": "",
          "maxLength": 200
        },
        "target": {
          "type": "string",
          "title": "Target",
          "maxLength": 500,
          "minLength": 1
        },
        "enabled": {
          "type": "boolean",
          "title": "Enabled",
          "default": true
        },
        "operator": {
          "enum": [
            "<",
            "<=",
            "=",
            "!=",
            ">=",
            ">",
            "range"
          ],
          "type": "string",
          "title": "Operator"
        },
        "max_value": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Value",
          "default": null
        },
        "min_value": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Min Value",
          "default": null
        },
        "threshold": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Threshold",
          "default": null
        },
        "explanation": {
          "type": "string",
          "title": "Explanation",
          "default": "",
          "maxLength": 2000
        },
        "exposure_filter": {
          "anyOf": [
            {
              "$ref": "#/$defs/ExposureFilter"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "additionalProperties": false
    },
    "ExposureFilter": {
      "type": "object",
      "title": "ExposureFilter",
      "required": [
        "dimension",
        "match",
        "values"
      ],
      "properties": {
        "match": {
          "enum": [
            "equals",
            "not_equals",
            "in",
            "not_in"
          ],
          "type": "string",
          "title": "Match"
        },
        "values": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 120,
            "minLength": 1
          },
          "title": "Values",
          "maxItems": 100,
          "minItems": 1
        },
        "dimension": {
          "enum": [
            "denomination_currency",
            "country",
            "domicile",
            "issuer_country",
            "listing_country",
            "asset_class",
            "rating",
            "sector"
          ],
          "type": "string",
          "title": "Dimension"
        }
      },
      "additionalProperties": false
    },
    "AlignmentHolding": {
      "type": "object",
      "title": "AlignmentHolding",
      "required": [
        "id",
        "name"
      ],
      "properties": {
        "id": {
          "type": "string",
          "title": "Id",
          "maxLength": 120,
          "minLength": 1
        },
        "name": {
          "type": "string",
          "title": "Name",
          "maxLength": 500,
          "minLength": 1
        },
        "value": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Value",
          "default": null
        },
        "weight": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Weight",
          "default": null,
          "description": "Portfolio weight. Prefer a decimal share such as 0.24 for 24%. Percentage-point inputs such as 24 are also accepted and normalized when the supplied holdings use that convention."
        },
        "currency": {
          "type": "string",
          "title": "Currency",
          "default": "",
          "maxLength": 16
        },
        "attributes": {
          "type": "object",
          "title": "Attributes",
          "maxProperties": 100,
          "additionalProperties": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "source_reference": {
          "type": "string",
          "title": "Source Reference",
          "default": "",
          "maxLength": 500
        }
      },
      "additionalProperties": false
    }
  },
  "title": "evaluate_portfolio_alignmentArguments",
  "required": [
    "holdings",
    "idempotency_key"
  ],
  "properties": {
    "rules": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AlignmentRule"
          },
          "maxItems": 250
        },
        {
          "type": "null"
        }
      ],
      "title": "Rules",
      "default": null
    },
    "mandate": {
      "type": "string",
      "title": "Mandate",
      "default": "",
      "maxLength": 50000
    },
    "holdings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AlignmentHolding"
      },
      "title": "Holdings",
      "maxItems": 1000,
      "minItems": 1
    },
    "analysis_name": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 255,
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Analysis Name",
      "default": null,
      "description": "Optional private grouping name. The same case-sensitive name, after trimming outer whitespace, reuses one group for this user. Omit it for an independent operation. Keep the name on retries; each calculation still needs its own idempotency_key."
    },
    "base_currency": {
      "type": "string",
      "title": "Base Currency",
      "default": "USD",
      "maxLength": 16,
      "minLength": 1
    },
    "portfolio_name": {
      "type": "string",
      "title": "Portfolio Name",
      "default": "Portfolio",
      "maxLength": 255
    },
    "idempotency_key": {
      "type": "string",
      "title": "Idempotency Key",
      "maxLength": 255,
      "minLength": 1
    },
    "source_warnings": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 1
          },
          "maxItems": 100
        },
        {
          "type": "null"
        }
      ],
      "title": "Source Warnings",
      "default": null
    },
    "composition_scope": {
      "enum": [
        "complete",
        "partial",
        "unknown"
      ],
      "type": "string",
      "title": "Composition Scope",
      "default": "unknown"
    }
  }
}
evaluate_portfolio_alignment output schema
{
  "type": "object",
  "$defs": {
    "InvocationMeta": {
      "type": "object",
      "title": "InvocationMeta",
      "required": [
        "idempotent_replay",
        "plan",
        "monthly_invocations",
        "monthly_invocation_limit",
        "monthly_tokens"
      ],
      "properties": {
        "plan": {
          "type": "string",
          "title": "Plan"
        },
        "monthly_tokens": {
          "$ref": "#/$defs/MonthlyTokenUsage"
        },
        "idempotent_replay": {
          "type": "boolean",
          "title": "Idempotent Replay"
        },
        "monthly_invocations": {
          "type": "integer",
          "title": "Monthly Invocations"
        },
        "monthly_invocation_limit": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Monthly Invocation Limit"
        }
      },
      "additionalProperties": false
    },
    "MonthlyTokenUsage": {
      "type": "object",
      "title": "MonthlyTokenUsage",
      "properties": {
        "input_tokens": {
          "type": "integer",
          "title": "Input Tokens",
          "default": 0
        },
        "total_tokens": {
          "type": "integer",
          "title": "Total Tokens",
          "default": 0
        },
        "output_tokens": {
          "type": "integer",
          "title": "Output Tokens",
          "default": 0
        }
      },
      "additionalProperties": false
    },
    "GroupedLimitOutput": {
      "type": "object",
      "title": "GroupedLimitOutput",
      "required": [
        "analysis_id",
        "analysis_name",
        "analysis_url",
        "code",
        "status",
        "message",
        "capability",
        "plan",
        "usage",
        "resolution_paths"
      ],
      "properties": {
        "code": {
          "type": "string",
          "const": "capability_limit_exceeded",
          "title": "Code"
        },
        "plan": {
          "type": "string",
          "title": "Plan"
        },
        "usage": {
          "$ref": "#/$defs/CapabilityLimitUsage"
        },
        "status": {
          "type": "string",
          "const": "quota_exceeded",
          "title": "Status"
        },
        "message": {
          "type": "string",
          "title": "Message"
        },
        "capability": {
          "type": "string",
          "title": "Capability"
        },
        "analysis_id": {
          "type": "string",
          "title": "Analysis Id"
        },
        "analysis_url": {
          "type": "string",
          "title": "Analysis Url"
        },
        "analysis_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Analysis Name"
        },
        "retryable_now": {
          "type": "boolean",
          "const": false,
          "title": "Retryable Now",
          "default": false
        },
        "resolution_paths": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CapabilityLimitResolutionPath"
          },
          "title": "Resolution Paths",
          "minItems": 1
        },
        "same_idempotency_key_reusable": {
          "type": "boolean",
          "const": true,
          "title": "Same Idempotency Key Reusable",
          "default": true
        }
      },
      "additionalProperties": false
    },
    "CapabilityLimitUsage": {
      "type": "object",
      "title": "CapabilityLimitUsage",
      "required": [
        "used",
        "limit",
        "started_at",
        "resets_at"
      ],
      "properties": {
        "used": {
          "type": "integer",
          "title": "Used",
          "minimum": 0
        },
        "limit": {
          "type": "integer",
          "title": "Limit",
          "minimum": 0
        },
        "period": {
          "type": "string",
          "const": "calendar_month",
          "title": "Period",
          "default": "calendar_month"
        },
        "resets_at": {
          "type": "string",
          "title": "Resets At",
          "format": "date-time"
        },
        "started_at": {
          "type": "string",
          "title": "Started At",
          "format": "date-time"
        }
      },
      "additionalProperties": false
    },
    "GroupedAlignmentOutput": {
      "type": "object",
      "title": "GroupedAlignmentOutput",
      "required": [
        "analysis_id",
        "analysis_name",
        "analysis_url",
        "capability",
        "status",
        "summary",
        "meta"
      ],
      "properties": {
        "meta": {
          "$ref": "#/$defs/InvocationMeta"
        },
        "status": {
          "enum": [
            "compliant",
            "non_compliant",
            "insufficient_evidence"
          ],
          "type": "string",
          "title": "Status"
        },
        "summary": {
          "type": "string",
          "title": "Summary"
        },
        "findings": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true
          },
          "title": "Findings"
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Warnings"
        },
        "capability": {
          "type": "string",
          "const": "portfolio_alignment.v1",
          "title": "Capability"
        },
        "analysis_id": {
          "type": "string",
          "title": "Analysis Id"
        },
        "analysis_url": {
          "type": "string",
          "title": "Analysis Url"
        },
        "rule_results": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true
          },
          "title": "Rule Results"
        },
        "analysis_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Analysis Name"
        }
      },
      "additionalProperties": false
    },
    "CapabilityLimitResolutionPath": {
      "type": "object",
      "title": "CapabilityLimitResolutionPath",
      "required": [
        "id",
        "label",
        "description"
      ],
      "properties": {
        "id": {
          "type": "string",
          "title": "Id",
          "maxLength": 64,
          "minLength": 1
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Url",
          "default": null
        },
        "label": {
          "type": "string",
          "title": "Label",
          "maxLength": 120,
          "minLength": 1
        },
        "description": {
          "type": "string",
          "title": "Description",
          "maxLength": 500,
          "minLength": 1
        },
        "available_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Available At",
          "default": null
        }
      },
      "additionalProperties": false
    }
  },
  "anyOf": [
    {
      "$ref": "#/$defs/GroupedAlignmentOutput"
    },
    {
      "$ref": "#/$defs/GroupedLimitOutput"
    }
  ],
  "title": "GroupedAlignmentToolOutput"
}
evaluate_portfolio_alignment annotations
{
  "readOnlyHint": false,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
calculate_portfolio_constraints — Calculate portfolio constraints
Advertised by the server during the last successful anonymous check.

Calculate explicit portfolio constraints deterministically from normalized holdings. Use this for arithmetic checks, not for interpreting natural-language mandates.

calculate_portfolio_constraints input schema
{
  "type": "object",
  "$defs": {
    "ExposureFilter": {
      "type": "object",
      "title": "ExposureFilter",
      "required": [
        "dimension",
        "match",
        "values"
      ],
      "properties": {
        "match": {
          "enum": [
            "equals",
            "not_equals",
            "in",
            "not_in"
          ],
          "type": "string",
          "title": "Match"
        },
        "values": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 120,
            "minLength": 1
          },
          "title": "Values",
          "maxItems": 100,
          "minItems": 1
        },
        "dimension": {
          "enum": [
            "denomination_currency",
            "country",
            "domicile",
            "issuer_country",
            "listing_country",
            "asset_class",
            "rating",
            "sector"
          ],
          "type": "string",
          "title": "Dimension"
        }
      },
      "additionalProperties": false
    },
    "AlignmentHolding": {
      "type": "object",
      "title": "AlignmentHolding",
      "required": [
        "id",
        "name"
      ],
      "properties": {
        "id": {
          "type": "string",
          "title": "Id",
          "maxLength": 120,
          "minLength": 1
        },
        "name": {
          "type": "string",
          "title": "Name",
          "maxLength": 500,
          "minLength": 1
        },
        "value": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Value",
          "default": null
        },
        "weight": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Weight",
          "default": null,
          "description": "Portfolio weight. Prefer a decimal share such as 0.24 for 24%. Percentage-point inputs such as 24 are also accepted and normalized when the supplied holdings use that convention."
        },
        "currency": {
          "type": "string",
          "title": "Currency",
          "default": "",
          "maxLength": 16
        },
        "attributes": {
          "type": "object",
          "title": "Attributes",
          "maxProperties": 100,
          "additionalProperties": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "source_reference": {
          "type": "string",
          "title": "Source Reference",
          "default": "",
          "maxLength": 500
        }
      },
      "additionalProperties": false
    },
    "DeterministicConstraint": {
      "type": "object",
      "title": "DeterministicConstraint",
      "required": [
        "id",
        "metric",
        "operator"
      ],
      "properties": {
        "id": {
          "type": "string",
          "title": "Id",
          "maxLength": 120,
          "minLength": 1
        },
        "top_n": {
          "anyOf": [
            {
              "type": "integer",
              "maximum": 1000,
              "minimum": 1
            },
            {
              "type": "null"
            }
          ],
          "title": "Top N",
          "default": null
        },
        "metric": {
          "enum": [
            "single_holding_weight",
            "selected_holdings_weight",
            "filtered_holdings_weight",
            "top_n_holdings_weight",
            "holding_count",
            "total_weight"
          ],
          "type": "string",
          "title": "Metric"
        },
        "operator": {
          "enum": [
            "<",
            "<=",
            "=",
            "!=",
            ">=",
            ">",
            "range"
          ],
          "type": "string",
          "title": "Operator"
        },
        "max_value": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Value",
          "default": null
        },
        "min_value": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Min Value",
          "default": null
        },
        "threshold": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Threshold",
          "default": null
        },
        "holding_ids": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Holding Ids",
          "maxItems": 1000
        },
        "exposure_filter": {
          "anyOf": [
            {
              "$ref": "#/$defs/ExposureFilter"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "additionalProperties": false
    }
  },
  "title": "calculate_portfolio_constraintsArguments",
  "required": [
    "holdings",
    "constraints",
    "idempotency_key"
  ],
  "properties": {
    "holdings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AlignmentHolding"
      },
      "title": "Holdings",
      "maxItems": 1000,
      "minItems": 1
    },
    "constraints": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DeterministicConstraint"
      },
      "title": "Constraints",
      "maxItems": 250,
      "minItems": 1
    },
    "analysis_name": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 255,
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Analysis Name",
      "default": null,
      "description": "Optional private grouping name. The same case-sensitive name, after trimming outer whitespace, reuses one group for this user. Omit it for an independent operation. Keep the name on retries; each calculation still needs its own idempotency_key."
    },
    "base_currency": {
      "type": "string",
      "title": "Base Currency",
      "default": "USD",
      "maxLength": 16,
      "minLength": 1
    },
    "idempotency_key": {
      "type": "string",
      "title": "Idempotency Key",
      "maxLength": 255,
      "minLength": 1
    },
    "source_warnings": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 1
          },
          "maxItems": 100
        },
        {
          "type": "null"
        }
      ],
      "title": "Source Warnings",
      "default": null
    },
    "composition_scope": {
      "enum": [
        "complete",
        "partial",
        "unknown"
      ],
      "type": "string",
      "title": "Composition Scope",
      "default": "unknown"
    }
  }
}
calculate_portfolio_constraints output schema
{
  "type": "object",
  "$defs": {
    "InvocationMeta": {
      "type": "object",
      "title": "InvocationMeta",
      "required": [
        "idempotent_replay",
        "plan",
        "monthly_invocations",
        "monthly_invocation_limit",
        "monthly_tokens"
      ],
      "properties": {
        "plan": {
          "type": "string",
          "title": "Plan"
        },
        "monthly_tokens": {
          "$ref": "#/$defs/MonthlyTokenUsage"
        },
        "idempotent_replay": {
          "type": "boolean",
          "title": "Idempotent Replay"
        },
        "monthly_invocations": {
          "type": "integer",
          "title": "Monthly Invocations"
        },
        "monthly_invocation_limit": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Monthly Invocation Limit"
        }
      },
      "additionalProperties": false
    },
    "ConstraintResult": {
      "type": "object",
      "title": "ConstraintResult",
      "required": [
        "id",
        "metric",
        "status",
        "message"
      ],
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "actual": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Actual",
          "default": null
        },
        "metric": {
          "enum": [
            "single_holding_weight",
            "selected_holdings_weight",
            "filtered_holdings_weight",
            "top_n_holdings_weight",
            "holding_count",
            "total_weight"
          ],
          "type": "string",
          "title": "Metric"
        },
        "status": {
          "enum": [
            "pass",
            "fail",
            "insufficient_evidence"
          ],
          "type": "string",
          "title": "Status"
        },
        "message": {
          "type": "string",
          "title": "Message"
        },
        "holding_ids": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Holding Ids"
        }
      },
      "additionalProperties": false
    },
    "MonthlyTokenUsage": {
      "type": "object",
      "title": "MonthlyTokenUsage",
      "properties": {
        "input_tokens": {
          "type": "integer",
          "title": "Input Tokens",
          "default": 0
        },
        "total_tokens": {
          "type": "integer",
          "title": "Total Tokens",
          "default": 0
        },
        "output_tokens": {
          "type": "integer",
          "title": "Output Tokens",
          "default": 0
        }
      },
      "additionalProperties": false
    },
    "GroupedLimitOutput": {
      "type": "object",
      "title": "GroupedLimitOutput",
      "required": [
        "analysis_id",
        "analysis_name",
        "analysis_url",
        "code",
        "status",
        "message",
        "capability",
        "plan",
        "usage",
        "resolution_paths"
      ],
      "properties": {
        "code": {
          "type": "string",
          "const": "capability_limit_exceeded",
          "title": "Code"
        },
        "plan": {
          "type": "string",
          "title": "Plan"
        },
        "usage": {
          "$ref": "#/$defs/CapabilityLimitUsage"
        },
        "status": {
          "type": "string",
          "const": "quota_exceeded",
          "title": "Status"
        },
        "message": {
          "type": "string",
          "title": "Message"
        },
        "capability": {
          "type": "string",
          "title": "Capability"
        },
        "analysis_id": {
          "type": "string",
          "title": "Analysis Id"
        },
        "analysis_url": {
          "type": "string",
          "title": "Analysis Url"
        },
        "analysis_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Analysis Name"
        },
        "retryable_now": {
          "type": "boolean",
          "const": false,
          "title": "Retryable Now",
          "default": false
        },
        "resolution_paths": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CapabilityLimitResolutionPath"
          },
          "title": "Resolution Paths",
          "minItems": 1
        },
        "same_idempotency_key_reusable": {
          "type": "boolean",
          "const": true,
          "title": "Same Idempotency Key Reusable",
          "default": true
        }
      },
      "additionalProperties": false
    },
    "CapabilityLimitUsage": {
      "type": "object",
      "title": "CapabilityLimitUsage",
      "required": [
        "used",
        "limit",
        "started_at",
        "resets_at"
      ],
      "properties": {
        "used": {
          "type": "integer",
          "title": "Used",
          "minimum": 0
        },
        "limit": {
          "type": "integer",
          "title": "Limit",
          "minimum": 0
        },
        "period": {
          "type": "string",
          "const": "calendar_month",
          "title": "Period",
          "default": "calendar_month"
        },
        "resets_at": {
          "type": "string",
          "title": "Resets At",
          "format": "date-time"
        },
        "started_at": {
          "type": "string",
          "title": "Started At",
          "format": "date-time"
        }
      },
      "additionalProperties": false
    },
    "GroupedConstraintsOutput": {
      "type": "object",
      "title": "GroupedConstraintsOutput",
      "required": [
        "analysis_id",
        "analysis_name",
        "analysis_url",
        "capability",
        "status",
        "meta"
      ],
      "properties": {
        "meta": {
          "$ref": "#/$defs/InvocationMeta"
        },
        "status": {
          "enum": [
            "compliant",
            "non_compliant",
            "insufficient_evidence"
          ],
          "type": "string",
          "title": "Status"
        },
        "results": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ConstraintResult"
          },
          "title": "Results"
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Warnings"
        },
        "capability": {
          "type": "string",
          "const": "portfolio_constraints.v1",
          "title": "Capability"
        },
        "analysis_id": {
          "type": "string",
          "title": "Analysis Id"
        },
        "analysis_url": {
          "type": "string",
          "title": "Analysis Url"
        },
        "analysis_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Analysis Name"
        }
      },
      "additionalProperties": false
    },
    "CapabilityLimitResolutionPath": {
      "type": "object",
      "title": "CapabilityLimitResolutionPath",
      "required": [
        "id",
        "label",
        "description"
      ],
      "properties": {
        "id": {
          "type": "string",
          "title": "Id",
          "maxLength": 64,
          "minLength": 1
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Url",
          "default": null
        },
        "label": {
          "type": "string",
          "title": "Label",
          "maxLength": 120,
          "minLength": 1
        },
        "description": {
          "type": "string",
          "title": "Description",
          "maxLength": 500,
          "minLength": 1
        },
        "available_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Available At",
          "default": null
        }
      },
      "additionalProperties": false
    }
  },
  "anyOf": [
    {
      "$ref": "#/$defs/GroupedConstraintsOutput"
    },
    {
      "$ref": "#/$defs/GroupedLimitOutput"
    }
  ],
  "title": "GroupedConstraintsToolOutput"
}
calculate_portfolio_constraints annotations
{
  "readOnlyHint": false,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
upload_portfolio_series_rows — Upload portfolio series rows
Advertised by the server during the last successful anonymous check.

Upload normalized series_key/date/value/distribution rows and commit a dataset version. For up to 5,000 rows, omit chunk_index and total_chunks to complete in one call. For larger inputs, declare total_chunks on every call, send chunks in order, and reuse upload_id and idempotency_key. The final chunk automatically verifies and commits all data and returns immutable series profiles. Parse files locally before calling.

upload_portfolio_series_rows input schema
{
  "type": "object",
  "$defs": {
    "CanonicalSeriesRow": {
      "type": "object",
      "title": "CanonicalSeriesRow",
      "required": [
        "series_key",
        "date",
        "value"
      ],
      "properties": {
        "date": {
          "type": "string",
          "title": "Date",
          "format": "date"
        },
        "value": {
          "type": "string",
          "title": "Value"
        },
        "series_key": {
          "type": "string",
          "title": "Series Key",
          "maxLength": 255,
          "minLength": 1
        },
        "distribution": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Distribution",
          "default": null
        }
      },
      "additionalProperties": false
    }
  },
  "title": "upload_portfolio_series_rowsArguments",
  "required": [
    "idempotency_key",
    "rows"
  ],
  "properties": {
    "rows": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CanonicalSeriesRow"
      },
      "title": "Rows",
      "maxItems": 5000,
      "minItems": 1
    },
    "source": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": true
        },
        {
          "type": "null"
        }
      ],
      "title": "Source",
      "default": null
    },
    "upload_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Upload Id",
      "default": null
    },
    "dataset_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Dataset Id",
      "default": null
    },
    "chunk_index": {
      "type": "integer",
      "title": "Chunk Index",
      "default": 0,
      "minimum": 0,
      "description": "Zero-based chunk position; upload chunks in order."
    },
    "content_hash": {
      "type": "string",
      "title": "Content Hash",
      "default": "",
      "maxLength": 64
    },
    "dataset_name": {
      "type": "string",
      "title": "Dataset Name",
      "default": "",
      "maxLength": 255
    },
    "portfolio_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Portfolio Id",
      "default": null
    },
    "total_chunks": {
      "type": "integer",
      "title": "Total Chunks",
      "default": 1,
      "minimum": 1,
      "description": "Total number of chunks in this upload. The last accepted chunk commits the dataset automatically."
    },
    "analysis_name": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 255,
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Analysis Name",
      "default": null,
      "description": "Optional private grouping name. The same case-sensitive name, after trimming outer whitespace, reuses one group for this user. Omit it for an independent operation. Keep the name on retries; each calculation still needs its own idempotency_key."
    },
    "idempotency_key": {
      "type": "string",
      "title": "Idempotency Key",
      "maxLength": 255,
      "minLength": 1
    },
    "series_profiles": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true
          }
        },
        {
          "type": "null"
        }
      ],
      "title": "Series Profiles",
      "default": null,
      "description": "Source-backed semantics for each series_key. Supply on the first or final chunk; the final chunk can complete the proposals before commit. Ambiguous or incomplete profiles require review before calculation."
    },
    "new_portfolio_name": {
      "type": "string",
      "title": "New Portfolio Name",
      "default": "",
      "maxLength": 255
    }
  }
}
upload_portfolio_series_rows output schema
{
  "type": "object",
  "title": "GroupedUploadOutput",
  "required": [
    "analysis_id",
    "analysis_name",
    "analysis_url",
    "upload_id",
    "portfolio_id",
    "dataset_id",
    "dataset_name",
    "status",
    "accepted_chunk_index",
    "chunk_content_hash",
    "chunk_replayed",
    "total_rows",
    "total_bytes",
    "next_chunk_index",
    "expires_at",
    "total_chunks"
  ],
  "properties": {
    "status": {
      "type": "string",
      "title": "Status"
    },
    "row_count": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Row Count",
      "default": null
    },
    "upload_id": {
      "type": "string",
      "title": "Upload Id"
    },
    "dataset_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Dataset Id"
    },
    "expires_at": {
      "type": "string",
      "title": "Expires At",
      "format": "date-time"
    },
    "total_rows": {
      "type": "integer",
      "title": "Total Rows"
    },
    "analysis_id": {
      "type": "string",
      "title": "Analysis Id"
    },
    "total_bytes": {
      "type": "integer",
      "title": "Total Bytes"
    },
    "analysis_url": {
      "type": "string",
      "title": "Analysis Url"
    },
    "content_hash": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Content Hash",
      "default": null
    },
    "dataset_name": {
      "type": "string",
      "title": "Dataset Name"
    },
    "finalized_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Finalized At",
      "default": null
    },
    "portfolio_id": {
      "type": "string",
      "title": "Portfolio Id"
    },
    "total_chunks": {
      "type": "integer",
      "title": "Total Chunks"
    },
    "analysis_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Analysis Name"
    },
    "manifest_hash": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Manifest Hash",
      "default": null
    },
    "chunk_replayed": {
      "type": "boolean",
      "title": "Chunk Replayed"
    },
    "review_required": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Review Required",
      "default": null
    },
    "series_profiles": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      },
      "title": "Series Profiles"
    },
    "next_chunk_index": {
      "type": "integer",
      "title": "Next Chunk Index"
    },
    "idempotent_replay": {
      "type": "boolean",
      "title": "Idempotent Replay",
      "default": false
    },
    "chunk_content_hash": {
      "type": "string",
      "title": "Chunk Content Hash"
    },
    "dataset_version_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Dataset Version Id",
      "default": null
    },
    "accepted_chunk_index": {
      "type": "integer",
      "title": "Accepted Chunk Index"
    },
    "dataset_version_number": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Dataset Version Number",
      "default": null
    }
  },
  "additionalProperties": false
}
upload_portfolio_series_rows annotations
{
  "readOnlyHint": false,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
cancel_portfolio_series_upload — Cancel portfolio series upload
Advertised by the server during the last successful anonymous check.
Advertised destructive

Cancel a pending upload and permanently remove its staging chunks.

cancel_portfolio_series_upload input schema
{
  "type": "object",
  "title": "cancel_portfolio_series_uploadArguments",
  "required": [
    "upload_id"
  ],
  "properties": {
    "upload_id": {
      "type": "string",
      "title": "Upload Id",
      "format": "uuid"
    },
    "analysis_name": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 255,
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Analysis Name",
      "default": null,
      "description": "Optional private grouping name. The same case-sensitive name, after trimming outer whitespace, reuses one group for this user. Omit it for an independent operation. Keep the name on retries; each calculation still needs its own idempotency_key."
    }
  }
}
cancel_portfolio_series_upload output schema
{
  "type": "object",
  "title": "GroupedCancelOutput",
  "required": [
    "analysis_id",
    "analysis_name",
    "analysis_url",
    "upload_id",
    "status",
    "staging_deleted",
    "cancelled_at"
  ],
  "properties": {
    "status": {
      "type": "string",
      "title": "Status"
    },
    "upload_id": {
      "type": "string",
      "title": "Upload Id"
    },
    "analysis_id": {
      "type": "string",
      "title": "Analysis Id"
    },
    "analysis_url": {
      "type": "string",
      "title": "Analysis Url"
    },
    "cancelled_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cancelled At"
    },
    "analysis_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Analysis Name"
    },
    "staging_deleted": {
      "type": "boolean",
      "title": "Staging Deleted"
    }
  },
  "additionalProperties": false
}
cancel_portfolio_series_upload annotations
{
  "readOnlyHint": false,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": true
}
review_portfolio_series_profile — Review portfolio series profile
Advertised by the server during the last successful anonymous check.

Create an immutable profile revision using revise, or explicitly confirm a warning-free proposal with confirmation=true.

review_portfolio_series_profile input schema
{
  "type": "object",
  "title": "review_portfolio_series_profileArguments",
  "required": [
    "profile_id",
    "action"
  ],
  "properties": {
    "action": {
      "enum": [
        "revise",
        "confirm"
      ],
      "type": "string",
      "title": "Action"
    },
    "revisions": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": true
        },
        {
          "type": "null"
        }
      ],
      "title": "Revisions",
      "default": null
    },
    "profile_id": {
      "type": "string",
      "title": "Profile Id",
      "format": "uuid"
    },
    "confirmation": {
      "type": "boolean",
      "title": "Confirmation",
      "default": false
    },
    "analysis_name": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 255,
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Analysis Name",
      "default": null,
      "description": "Optional private grouping name. The same case-sensitive name, after trimming outer whitespace, reuses one group for this user. Omit it for an independent operation. Keep the name on retries; each calculation still needs its own idempotency_key."
    }
  }
}
review_portfolio_series_profile output schema
{
  "type": "object",
  "title": "GroupedReviewOutput",
  "required": [
    "analysis_id",
    "analysis_name",
    "analysis_url",
    "series_profile"
  ],
  "properties": {
    "analysis_id": {
      "type": "string",
      "title": "Analysis Id"
    },
    "analysis_url": {
      "type": "string",
      "title": "Analysis Url"
    },
    "analysis_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Analysis Name"
    },
    "series_profile": {
      "type": "object",
      "title": "Series Profile",
      "additionalProperties": true
    }
  },
  "additionalProperties": false
}
review_portfolio_series_profile annotations
{
  "readOnlyHint": false,
  "openWorldHint": false,
  "idempotentHint": false,
  "destructiveHint": false
}
calculate_portfolio_statistics — Calculate portfolio statistics
Advertised by the server during the last successful anonymous check.

Calculate historical return, volatility, drawdown, risk-adjusted and benchmark-relative statistics from a confirmed portfolio series profile. The metrics parameter describes all available calculations and their required inputs. Use daily, weekly or monthly complete periods; results include coverage, warnings and exact dataset/profile pins. Reuse an idempotency_key only for an identical calculation.

calculate_portfolio_statistics input schema
{
  "type": "object",
  "$defs": {
    "ScalarRateInput": {
      "type": "object",
      "title": "ScalarRateInput",
      "required": [
        "type",
        "value",
        "currency",
        "value_date",
        "tenor",
        "compounding",
        "provenance"
      ],
      "properties": {
        "type": {
          "type": "string",
          "const": "scalar",
          "title": "Type"
        },
        "tenor": {
          "type": "string",
          "title": "Tenor",
          "maxLength": 64,
          "minLength": 1
        },
        "value": {
          "type": "string",
          "title": "Value"
        },
        "currency": {
          "type": "string",
          "title": "Currency",
          "maxLength": 3,
          "minLength": 3
        },
        "quotation": {
          "type": "string",
          "const": "annualized",
          "title": "Quotation",
          "default": "annualized"
        },
        "provenance": {
          "type": "object",
          "title": "Provenance",
          "additionalProperties": true
        },
        "value_date": {
          "type": "string",
          "title": "Value Date",
          "format": "date"
        },
        "compounding": {
          "enum": [
            "simple",
            "annual",
            "continuous"
          ],
          "type": "string",
          "title": "Compounding"
        }
      },
      "additionalProperties": false
    },
    "ExactRateSeriesInput": {
      "type": "object",
      "title": "ExactRateSeriesInput",
      "required": [
        "type",
        "series_profile_id"
      ],
      "properties": {
        "type": {
          "type": "string",
          "const": "series_profile",
          "title": "Type"
        },
        "series_profile_id": {
          "type": "string",
          "title": "Series Profile Id",
          "format": "uuid"
        }
      },
      "additionalProperties": false
    }
  },
  "title": "calculate_portfolio_statisticsArguments",
  "required": [
    "series_profile_id",
    "metrics",
    "target_frequency",
    "idempotency_key"
  ],
  "properties": {
    "metrics": {
      "type": "array",
      "items": {
        "enum": [
          "periodic_returns",
          "cumulative_return",
          "observation_count",
          "period_count",
          "min_return",
          "max_return",
          "volatility",
          "drawdown",
          "max_drawdown",
          "downside_deviation",
          "sharpe",
          "sortino",
          "beta",
          "alpha",
          "correlation",
          "tracking_error",
          "information_ratio"
        ],
        "type": "string"
      },
      "title": "Metrics",
      "maxItems": 17,
      "minItems": 1,
      "description": "Select one or more unique metric names. periodic_returns: Return for each complete period at target_frequency. cumulative_return: Compounded return across the selected complete periods. observation_count: Number of source observations in the selected date range. period_count: Number of complete return periods available for calculation. min_return: Lowest periodic return and its period end date. max_return: Highest periodic return and its period end date. volatility: Sample standard deviation of periodic returns, with annualized volatility. drawdown: Decline from the running peak of compounded wealth for each period. max_drawdown: Largest peak-to-trough decline, with peak, trough and recovery dates when available. downside_deviation: Root mean square shortfall below minimum_acceptable_return, with annualized deviation. Requires minimum_acceptable_return. sharpe: Mean return above risk_free_rate divided by the sample standard deviation of excess returns, with annualized ratio. Requires risk_free_rate. sortino: Mean return above minimum_acceptable_return divided by downside deviation, with annualized ratio. Requires minimum_acceptable_return. beta: Sensitivity of portfolio returns to benchmark returns. Requires benchmark_profile_id. alpha: Return above the benchmark return implied by beta and risk_free_rate, with annualized alpha. Requires benchmark_profile_id and risk_free_rate. correlation: Pearson correlation between portfolio and benchmark returns. Requires benchmark_profile_id. tracking_error: Sample standard deviation of portfolio-minus-benchmark returns, with annualized tracking error. Requires benchmark_profile_id. information_ratio: Mean portfolio-minus-benchmark return divided by tracking error, with annualized ratio. Requires benchmark_profile_id."
    },
    "end_date": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "End Date",
      "default": null
    },
    "start_date": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Start Date",
      "default": null
    },
    "analysis_name": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 255,
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Analysis Name",
      "default": null,
      "description": "Optional private grouping name. The same case-sensitive name, after trimming outer whitespace, reuses one group for this user. Omit it for an independent operation. Keep the name on retries; each calculation still needs its own idempotency_key."
    },
    "risk_free_rate": {
      "anyOf": [
        {
          "$ref": "#/$defs/ExactRateSeriesInput"
        },
        {
          "$ref": "#/$defs/ScalarRateInput"
        },
        {
          "type": "null"
        }
      ],
      "title": "Risk Free Rate",
      "default": null,
      "description": "Required for sharpe and alpha. Use a confirmed risk-free rate profile or a source-backed dated annualized scalar with currency, tenor, compounding and provenance. Do not substitute an assumed rate."
    },
    "idempotency_key": {
      "type": "string",
      "title": "Idempotency Key",
      "maxLength": 255,
      "minLength": 1
    },
    "target_frequency": {
      "enum": [
        "daily",
        "weekly",
        "monthly"
      ],
      "type": "string",
      "title": "Target Frequency",
      "description": "Calculate complete daily, weekly or monthly return periods. Annualization uses 252, 52 or 12 periods per year respectively; finer-frequency data must be available."
    },
    "series_profile_id": {
      "type": "string",
      "title": "Series Profile Id",
      "format": "uuid",
      "description": "Confirmed portfolio series profile returned by upload or list_portfolio_series; pins one immutable dataset version."
    },
    "benchmark_profile_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Benchmark Profile Id",
      "default": null,
      "description": "Confirmed benchmark series profile in the same currency and return basis as the portfolio. Required for beta, alpha, correlation, tracking_error and information_ratio. Returns are matched by exact period dates."
    },
    "minimum_acceptable_return": {
      "anyOf": [
        {
          "$ref": "#/$defs/ExactRateSeriesInput"
        },
        {
          "$ref": "#/$defs/ScalarRateInput"
        },
        {
          "type": "null"
        }
      ],
      "title": "Minimum Acceptable Return",
      "default": null,
      "description": "Required for downside_deviation and sortino. Use a confirmed minimum acceptable return profile or a source-backed dated annualized scalar with currency, tenor, compounding and provenance."
    }
  }
}
calculate_portfolio_statistics output schema
{
  "type": "object",
  "$defs": {
    "BetaResult": {
      "type": "object",
      "title": "BetaResult",
      "required": [
        "status",
        "data",
        "metric"
      ],
      "properties": {
        "data": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ],
          "title": "Data"
        },
        "metric": {
          "type": "string",
          "const": "beta",
          "title": "Metric"
        },
        "status": {
          "enum": [
            "complete",
            "insufficient_evidence"
          ],
          "type": "string",
          "title": "Status"
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Warnings"
        },
        "required_inputs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Required Inputs"
        }
      },
      "additionalProperties": false
    },
    "AlphaResult": {
      "type": "object",
      "title": "AlphaResult",
      "required": [
        "status",
        "data",
        "metric"
      ],
      "properties": {
        "data": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ],
          "title": "Data"
        },
        "metric": {
          "type": "string",
          "const": "alpha",
          "title": "Metric"
        },
        "status": {
          "enum": [
            "complete",
            "insufficient_evidence"
          ],
          "type": "string",
          "title": "Status"
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Warnings"
        },
        "required_inputs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Required Inputs"
        }
      },
      "additionalProperties": false
    },
    "SharpeResult": {
      "type": "object",
      "title": "SharpeResult",
      "required": [
        "status",
        "data",
        "metric"
      ],
      "properties": {
        "data": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ],
          "title": "Data"
        },
        "metric": {
          "type": "string",
          "const": "sharpe",
          "title": "Metric"
        },
        "status": {
          "enum": [
            "complete",
            "insufficient_evidence"
          ],
          "type": "string",
          "title": "Status"
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Warnings"
        },
        "required_inputs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Required Inputs"
        }
      },
      "additionalProperties": false
    },
    "SortinoResult": {
      "type": "object",
      "title": "SortinoResult",
      "required": [
        "status",
        "data",
        "metric"
      ],
      "properties": {
        "data": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ],
          "title": "Data"
        },
        "metric": {
          "type": "string",
          "const": "sortino",
          "title": "Metric"
        },
        "status": {
          "enum": [
            "complete",
            "insufficient_evidence"
          ],
          "type": "string",
          "title": "Status"
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Warnings"
        },
        "required_inputs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Required Inputs"
        }
      },
      "additionalProperties": false
    },
    "CoverageResult": {
      "type": "object",
      "title": "CoverageResult",
      "required": [
        "source_start_date",
        "source_end_date",
        "observation_count",
        "period_count",
        "target_frequency",
        "partial_periods",
        "missing_periods"
      ],
      "properties": {
        "period_count": {
          "type": "integer",
          "title": "Period Count"
        },
        "missing_periods": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Missing Periods"
        },
        "partial_periods": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true
          },
          "title": "Partial Periods"
        },
        "source_end_date": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Source End Date"
        },
        "target_frequency": {
          "enum": [
            "daily",
            "weekly",
            "monthly"
          ],
          "type": "string",
          "title": "Target Frequency"
        },
        "observation_count": {
          "type": "integer",
          "title": "Observation Count"
        },
        "source_start_date": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Source Start Date"
        }
      },
      "additionalProperties": false
    },
    "DrawdownResult": {
      "type": "object",
      "title": "DrawdownResult",
      "required": [
        "status",
        "data",
        "metric"
      ],
      "properties": {
        "data": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ],
          "title": "Data"
        },
        "metric": {
          "type": "string",
          "const": "drawdown",
          "title": "Metric"
        },
        "status": {
          "enum": [
            "complete",
            "insufficient_evidence"
          ],
          "type": "string",
          "title": "Status"
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Warnings"
        },
        "required_inputs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Required Inputs"
        }
      },
      "additionalProperties": false
    },
    "InvocationMeta": {
      "type": "object",
      "title": "InvocationMeta",
      "required": [
        "idempotent_replay",
        "plan",
        "monthly_invocations",
        "monthly_invocation_limit",
        "monthly_tokens"
      ],
      "properties": {
        "plan": {
          "type": "string",
          "title": "Plan"
        },
        "monthly_tokens": {
          "$ref": "#/$defs/MonthlyTokenUsage"
        },
        "idempotent_replay": {
          "type": "boolean",
          "title": "Idempotent Replay"
        },
        "monthly_invocations": {
          "type": "integer",
          "title": "Monthly Invocations"
        },
        "monthly_invocation_limit": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Monthly Invocation Limit"
        }
      },
      "additionalProperties": false
    },
    "MaxReturnResult": {
      "type": "object",
      "title": "MaxReturnResult",
      "required": [
        "status",
        "data",
        "metric"
      ],
      "properties": {
        "data": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ],
          "title": "Data"
        },
        "metric": {
          "type": "string",
          "const": "max_return",
          "title": "Metric"
        },
        "status": {
          "enum": [
            "complete",
            "insufficient_evidence"
          ],
          "type": "string",
          "title": "Status"
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Warnings"
        },
        "required_inputs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Required Inputs"
        }
      },
      "additionalProperties": false
    },
    "MinReturnResult": {
      "type": "object",
      "title": "MinReturnResult",
      "required": [
        "status",
        "data",
        "metric"
      ],
      "properties": {
        "data": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ],
          "title": "Data"
        },
        "metric": {
          "type": "string",
          "const": "min_return",
          "title": "Metric"
        },
        "status": {
          "enum": [
            "complete",
            "insufficient_evidence"
          ],
          "type": "string",
          "title": "Status"
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Warnings"
        },
        "required_inputs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Required Inputs"
        }
      },
      "additionalProperties": false
    },
    "VolatilityResult": {
      "type": "object",
      "title": "VolatilityResult",
      "required": [
        "status",
        "data",
        "metric"
      ],
      "properties": {
        "data": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ],
          "title": "Data"
        },
        "metric": {
          "type": "string",
          "const": "volatility",
          "title": "Metric"
        },
        "status": {
          "enum": [
            "complete",
            "insufficient_evidence"
          ],
          "type": "string",
          "title": "Status"
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Warnings"
        },
        "required_inputs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Required Inputs"
        }
      },
      "additionalProperties": false
    },
    "CorrelationResult": {
      "type": "object",
      "title": "CorrelationResult",
      "required": [
        "status",
        "data",
        "metric"
      ],
      "properties": {
        "data": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ],
          "title": "Data"
        },
        "metric": {
          "type": "string",
          "const": "correlation",
          "title": "Metric"
        },
        "status": {
          "enum": [
            "complete",
            "insufficient_evidence"
          ],
          "type": "string",
          "title": "Status"
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Warnings"
        },
        "required_inputs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Required Inputs"
        }
      },
      "additionalProperties": false
    },
    "MaxDrawdownResult": {
      "type": "object",
      "title": "MaxDrawdownResult",
      "required": [
        "status",
        "data",
        "metric"
      ],
      "properties": {
        "data": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ],
          "title": "Data"
        },
        "metric": {
          "type": "string",
          "const": "max_drawdown",
          "title": "Metric"
        },
        "status": {
          "enum": [
            "complete",
            "insufficient_evidence"
          ],
          "type": "string",
          "title": "Status"
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Warnings"
        },
        "required_inputs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Required Inputs"
        }
      },
      "additionalProperties": false
    },
    "MonthlyTokenUsage": {
      "type": "object",
      "title": "MonthlyTokenUsage",
      "properties": {
        "input_tokens": {
          "type": "integer",
          "title": "Input Tokens",
          "default": 0
        },
        "total_tokens": {
          "type": "integer",
          "title": "Total Tokens",
          "default": 0
        },
        "output_tokens": {
          "type": "integer",
          "title": "Output Tokens",
          "default": 0
        }
      },
      "additionalProperties": false
    },
    "PeriodCountResult": {
      "type": "object",
      "title": "PeriodCountResult",
      "required": [
        "status",
        "data",
        "metric"
      ],
      "properties": {
        "data": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ],
          "title": "Data"
        },
        "metric": {
          "type": "string",
          "const": "period_count",
          "title": "Metric"
        },
        "status": {
          "enum": [
            "complete",
            "insufficient_evidence"
          ],
          "type": "string",
          "title": "Status"
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Warnings"
        },
        "required_inputs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Required Inputs"
        }
      },
      "additionalProperties": false
    },
    "GroupedLimitOutput": {
      "type": "object",
      "title": "GroupedLimitOutput",
      "required": [
        "analysis_id",
        "analysis_name",
        "analysis_url",
        "code",
        "status",
        "message",
        "capability",
        "plan",
        "usage",
        "resolution_paths"
      ],
      "properties": {
        "code": {
          "type": "string",
          "const": "capability_limit_exceeded",
          "title": "Code"
        },
        "plan": {
          "type": "string",
          "title": "Plan"
        },
        "usage": {
          "$ref": "#/$defs/CapabilityLimitUsage"
        },
        "status": {
          "type": "string",
          "const": "quota_exceeded",
          "title": "Status"
        },
        "message": {
          "type": "string",
          "title": "Message"
        },
        "capability": {
          "type": "string",
          "title": "Capability"
        },
        "analysis_id": {
          "type": "string",
          "title": "Analysis Id"
        },
        "analysis_url": {
          "type": "string",
          "title": "Analysis Url"
        },
        "analysis_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Analysis Name"
        },
        "retryable_now": {
          "type": "boolean",
          "const": false,
          "title": "Retryable Now",
          "default": false
        },
        "resolution_paths": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CapabilityLimitResolutionPath"
          },
          "title": "Resolution Paths",
          "minItems": 1
        },
        "same_idempotency_key_reusable": {
          "type": "boolean",
          "const": true,
          "title": "Same Idempotency Key Reusable",
          "default": true
        }
      },
      "additionalProperties": false
    },
    "TrackingErrorResult": {
      "type": "object",
      "title": "TrackingErrorResult",
      "required": [
        "status",
        "data",
        "metric"
      ],
      "properties": {
        "data": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ],
          "title": "Data"
        },
        "metric": {
          "type": "string",
          "const": "tracking_error",
          "title": "Metric"
        },
        "status": {
          "enum": [
            "complete",
            "insufficient_evidence"
          ],
          "type": "string",
          "title": "Status"
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Warnings"
        },
        "required_inputs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Required Inputs"
        }
      },
      "additionalProperties": false
    },
    "CapabilityLimitUsage": {
      "type": "object",
      "title": "CapabilityLimitUsage",
      "required": [
        "used",
        "limit",
        "started_at",
        "resets_at"
      ],
      "properties": {
        "used": {
          "type": "integer",
          "title": "Used",
          "minimum": 0
        },
        "limit": {
          "type": "integer",
          "title": "Limit",
          "minimum": 0
        },
        "period": {
          "type": "string",
          "const": "calendar_month",
          "title": "Period",
          "default": "calendar_month"
        },
        "resets_at": {
          "type": "string",
          "title": "Resets At",
          "format": "date-time"
        },
        "started_at": {
          "type": "string",
          "title": "Started At",
          "format": "date-time"
        }
      },
      "additionalProperties": false
    },
    "MethodologyReference": {
      "type": "object",
      "title": "MethodologyReference",
      "required": [
        "id",
        "hash",
        "sources"
      ],
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "hash": {
          "type": "string",
          "title": "Hash"
        },
        "sources": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Sources"
        }
      },
      "additionalProperties": false
    },
    "PeriodicReturnsResult": {
      "type": "object",
      "title": "PeriodicReturnsResult",
      "required": [
        "status",
        "data",
        "metric"
      ],
      "properties": {
        "data": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ],
          "title": "Data"
        },
        "metric": {
          "type": "string",
          "const": "periodic_returns",
          "title": "Metric"
        },
        "status": {
          "enum": [
            "complete",
            "insufficient_evidence"
          ],
          "type": "string",
          "title": "Status"
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Warnings"
        },
        "required_inputs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Required Inputs"
        }
      },
      "additionalProperties": false
    },
    "CumulativeReturnResult": {
      "type": "object",
      "title": "CumulativeReturnResult",
      "required": [
        "status",
        "data",
        "metric"
      ],
      "properties": {
        "data": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ],
          "title": "Data"
        },
        "metric": {
          "type": "string",
          "const": "cumulative_return",
          "title": "Metric"
        },
        "status": {
          "enum": [
            "complete",
            "insufficient_evidence"
          ],
          "type": "string",
          "title": "Status"
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Warnings"
        },
        "required_inputs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Required Inputs"
        }
      },
      "additionalProperties": false
    },
    "InformationRatioResult": {
      "type": "object",
      "title": "InformationRatioResult",
      "required": [
        "status",
        "data",
        "metric"
      ],
      "properties": {
        "data": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ],
          "title": "Data"
        },
        "metric": {
          "type": "string",
          "const": "information_ratio",
          "title": "Metric"
        },
        "status": {
          "enum": [
            "complete",
            "insufficient_evidence"
          ],
          "type": "string",
          "title": "Status"
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Warnings"
        },
        "required_inputs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Required Inputs"
        }
      },
      "additionalProperties": false
    },
    "ObservationCountResult": {
      "type": "object",
      "title": "ObservationCountResult",
      "required": [
        "status",
        "data",
        "metric"
      ],
      "properties": {
        "data": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ],
          "title": "Data"
        },
        "metric": {
          "type": "string",
          "const": "observation_count",
          "title": "Metric"
        },
        "status": {
          "enum": [
            "complete",
            "insufficient_evidence"
          ],
          "type": "string",
          "title": "Status"
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Warnings"
        },
        "required_inputs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Required Inputs"
        }
      },
      "additionalProperties": false
    },
    "StatisticsAuditContext": {
      "type": "object",
      "title": "StatisticsAuditContext",
      "required": [
        "portfolio_id",
        "requested_metrics",
        "requested_start_date",
        "requested_end_date",
        "target_frequency",
        "benchmark",
        "risk_free_rate",
        "minimum_acceptable_return",
        "pins"
      ],
      "properties": {
        "pins": {
          "type": "object",
          "title": "Pins",
          "additionalProperties": true
        },
        "benchmark": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ],
          "title": "Benchmark"
        },
        "portfolio_id": {
          "type": "string",
          "title": "Portfolio Id"
        },
        "risk_free_rate": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ],
          "title": "Risk Free Rate"
        },
        "target_frequency": {
          "enum": [
            "daily",
            "weekly",
            "monthly"
          ],
          "type": "string",
          "title": "Target Frequency"
        },
        "requested_metrics": {
          "type": "array",
          "items": {
            "enum": [
              "periodic_returns",
              "cumulative_return",
              "observation_count",
              "period_count",
              "min_return",
              "max_return",
              "volatility",
              "drawdown",
              "max_drawdown",
              "downside_deviation",
              "sharpe",
              "sortino",
              "beta",
              "alpha",
              "correlation",
              "tracking_error",
              "information_ratio"
            ],
            "type": "string"
          },
          "title": "Requested Metrics"
        },
        "requested_end_date": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Requested End Date"
        },
        "requested_start_date": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Requested Start Date"
        },
        "minimum_acceptable_return": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ],
          "title": "Minimum Acceptable Return"
        }
      },
      "additionalProperties": false
    },
    "DownsideDeviationResult": {
      "type": "object",
      "title": "DownsideDeviationResult",
      "required": [
        "status",
        "data",
        "metric"
      ],
      "properties": {
        "data": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ],
          "title": "Data"
        },
        "metric": {
          "type": "string",
          "const": "downside_deviation",
          "title": "Metric"
        },
        "status": {
          "enum": [
            "complete",
            "insufficient_evidence"
          ],
          "type": "string",
          "title": "Status"
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Warnings"
        },
        "required_inputs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Required Inputs"
        }
      },
      "additionalProperties": false
    },
    "GroupedStatisticsOutput": {
      "type": "object",
      "title": "GroupedStatisticsOutput",
      "required": [
        "analysis_id",
        "analysis_name",
        "analysis_url",
        "capability",
        "status",
        "methodology",
        "series",
        "coverage",
        "results",
        "warnings",
        "required_inputs",
        "meta"
      ],
      "properties": {
        "meta": {
          "$ref": "#/$defs/InvocationMeta"
        },
        "series": {
          "$ref": "#/$defs/StatisticsSeriesReference"
        },
        "status": {
          "enum": [
            "complete",
            "partial",
            "insufficient_evidence"
          ],
          "type": "string",
          "title": "Status"
        },
        "results": {
          "type": "array",
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/PeriodicReturnsResult"
              },
              {
                "$ref": "#/$defs/CumulativeReturnResult"
              },
              {
                "$ref": "#/$defs/ObservationCountResult"
              },
              {
                "$ref": "#/$defs/PeriodCountResult"
              },
              {
                "$ref": "#/$defs/MinReturnResult"
              },
              {
                "$ref": "#/$defs/MaxReturnResult"
              },
              {
                "$ref": "#/$defs/VolatilityResult"
              },
              {
                "$ref": "#/$defs/DrawdownResult"
              },
              {
                "$ref": "#/$defs/MaxDrawdownResult"
              },
              {
                "$ref": "#/$defs/DownsideDeviationResult"
              },
              {
                "$ref": "#/$defs/SharpeResult"
              },
              {
                "$ref": "#/$defs/SortinoResult"
              },
              {
                "$ref": "#/$defs/BetaResult"
              },
              {
                "$ref": "#/$defs/AlphaResult"
              },
              {
                "$ref": "#/$defs/CorrelationResult"
              },
              {
                "$ref": "#/$defs/TrackingErrorResult"
              },
              {
                "$ref": "#/$defs/InformationRatioResult"
              }
            ],
            "discriminator": {
              "mapping": {
                "beta": "#/$defs/BetaResult",
                "alpha": "#/$defs/AlphaResult",
                "sharpe": "#/$defs/SharpeResult",
                "sortino": "#/$defs/SortinoResult",
                "drawdown": "#/$defs/DrawdownResult",
                "max_return": "#/$defs/MaxReturnResult",
                "min_return": "#/$defs/MinReturnResult",
                "volatility": "#/$defs/VolatilityResult",
                "correlation": "#/$defs/CorrelationResult",
                "max_drawdown": "#/$defs/MaxDrawdownResult",
                "period_count": "#/$defs/PeriodCountResult",
                "tracking_error": "#/$defs/TrackingErrorResult",
                "periodic_returns": "#/$defs/PeriodicReturnsResult",
                "cumulative_return": "#/$defs/CumulativeReturnResult",
                "information_ratio": "#/$defs/InformationRatioResult",
                "observation_count": "#/$defs/ObservationCountResult",
                "downside_deviation": "#/$defs/DownsideDeviationResult"
              },
              "propertyName": "metric"
            }
          },
          "title": "Results"
        },
        "coverage": {
          "$ref": "#/$defs/CoverageResult"
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Warnings"
        },
        "capability": {
          "type": "string",
          "const": "portfolio_statistics.v1",
          "title": "Capability"
        },
        "analysis_id": {
          "type": "string",
          "title": "Analysis Id"
        },
        "methodology": {
          "$ref": "#/$defs/MethodologyReference"
        },
        "analysis_url": {
          "type": "string",
          "title": "Analysis Url"
        },
        "analysis_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Analysis Name"
        },
        "audit_context": {
          "anyOf": [
            {
              "$ref": "#/$defs/StatisticsAuditContext"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "required_inputs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Required Inputs"
        }
      },
      "additionalProperties": false
    },
    "StatisticsSeriesReference": {
      "type": "object",
      "title": "StatisticsSeriesReference",
      "required": [
        "profile_id",
        "profile_hash",
        "dataset_version_id",
        "content_hash"
      ],
      "properties": {
        "profile_id": {
          "type": "string",
          "title": "Profile Id"
        },
        "content_hash": {
          "type": "string",
          "title": "Content Hash"
        },
        "profile_hash": {
          "type": "string",
          "title": "Profile Hash"
        },
        "dataset_version_id": {
          "type": "string",
          "title": "Dataset Version Id"
        }
      },
      "additionalProperties": false
    },
    "CapabilityLimitResolutionPath": {
      "type": "object",
      "title": "CapabilityLimitResolutionPath",
      "required": [
        "id",
        "label",
        "description"
      ],
      "properties": {
        "id": {
          "type": "string",
          "title": "Id",
          "maxLength": 64,
          "minLength": 1
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Url",
          "default": null
        },
        "label": {
          "type": "string",
          "title": "Label",
          "maxLength": 120,
          "minLength": 1
        },
        "description": {
          "type": "string",
          "title": "Description",
          "maxLength": 500,
          "minLength": 1
        },
        "available_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Available At",
          "default": null
        }
      },
      "additionalProperties": false
    }
  },
  "anyOf": [
    {
      "$ref": "#/$defs/GroupedStatisticsOutput"
    },
    {
      "$ref": "#/$defs/GroupedLimitOutput"
    }
  ],
  "title": "GroupedStatisticsToolOutput"
}
calculate_portfolio_statistics annotations
{
  "readOnlyHint": false,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}

Prompts

0 advertised

No prompt definitions available.

Resources

0 advertised

No resource definitions available.

90-day uptime

A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.

100% (82 of 82 checks answered)

  1. 2026-11-02: 3 of 3 checks answered
  2. 2026-11-03: 4 of 4 checks answered
  3. 2026-11-04: 4 of 4 checks answered
  4. 2026-11-05: 4 of 4 checks answered
  5. 2026-11-06: 4 of 4 checks answered
  6. 2026-11-07: 2 of 2 checks answered
  7. 2026-11-09: 1 of 1 checks answered
  8. 2026-11-10: 2 of 2 checks answered
  9. 2026-11-11: 1 of 1 checks answered
  10. 2026-11-12: 1 of 1 checks answered
  11. 2026-11-14: 1 of 1 checks answered
  12. 2026-11-15: 2 of 2 checks answered
  13. 2026-11-16: 4 of 4 checks answered
  14. 2026-11-17: 5 of 5 checks answered
  15. 2026-11-18: 5 of 5 checks answered
  16. 2026-11-19: 4 of 4 checks answered
  17. 2026-11-20: 3 of 3 checks answered
  18. 2026-11-21: 4 of 4 checks answered
  19. 2026-11-22: 4 of 4 checks answered
  20. 2026-11-23: 3 of 3 checks answered
  21. 2026-11-24: 4 of 4 checks answered
  22. 2026-11-25: 4 of 4 checks answered
  23. 2026-11-26: 4 of 4 checks answered
  24. 2026-11-27: 4 of 4 checks answered
  25. 2026-11-28: 3 of 3 checks answered
  26. 2026-11-29: 2 of 2 checks answered

30-day availability

Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.

Successful checks
2 of 2 (100%)
Average latency
2983 ms
95th percentile latency
3044 ms

Maintenance history

Public check and source-refresh events. Editorial and ownership records remain private.

  • · probe · passed · 2914 ms · 10 tool(s), 0 resource(s), 0 resource template(s), 0 prompt(s)
  • · probe · passed · 3051 ms · metadata changed · 10 tool(s), 0 resource(s), 0 resource template(s), 0 prompt(s)
  • · registry · passed · metadata changed · Source metadata updated
  • · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown

Connect from your client

Each snippet registers the same endpoint; pick the client you use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Claude Code

Run this once in a terminal. It registers the remote server. Use --scope project to write .mcp.json for the repo.
Claude Code configuration
claude mcp add --transport http portfoliofit-mcp https://portfolio.fit/mcp

Codex

Run this once. Codex stores MCP servers in ~/.codex/config.toml (or .codex/config.toml in a trusted project).
Codex configuration
codex mcp add portfoliofit-mcp --url https://portfolio.fit/mcp

Cursor

Merge this server into .cursor/mcp.json in your project, then enable portfoliofit-mcp in your MCP settings.
Cursor configuration
{
  "mcpServers": {
    "portfoliofit-mcp": {
      "url": "https://portfolio.fit/mcp"
    }
  }
}

Cline

Merge this into cline_mcp_settings.json (Cline → MCP Servers → Configure).
Cline configuration
{
  "mcpServers": {
    "portfoliofit-mcp": {
      "type": "streamableHttp",
      "url": "https://portfolio.fit/mcp",
      "disabled": false
    }
  }
}

VS Code

Merge this server into .vscode/mcp.json. Use MCP: List Servers to start portfoliofit-mcp and inspect its tools.
VS Code configuration
{
  "servers": {
    "portfoliofit-mcp": {
      "type": "http",
      "url": "https://portfolio.fit/mcp"
    }
  }
}

Gemini CLI

Run this once. It writes .gemini/settings.json in the current project; pass --scope user for ~/.gemini/settings.json.
Gemini CLI configuration
gemini mcp add --transport http portfoliofit-mcp https://portfolio.fit/mcp

Claude Desktop

Open Claude Settings > Connectors > Add custom connector, enter this server URL and enable it for the conversation. This is a manual remote-connector handoff, not a desktop JSON configuration.
Claude Desktop configuration
https://portfolio.fit/mcp

Windsurf

Merge this into ~/.codeium/windsurf/mcp_config.json, then refresh MCP in Cascade. Windsurf remote servers use serverUrl, not url.
Windsurf configuration
{
  "mcpServers": {
    "portfoliofit-mcp": {
      "serverUrl": "https://portfolio.fit/mcp"
    }
  }
}

Let your agent find its tools

Find servers like PortfolioFit MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.

Do you run PortfolioFit MCP?

Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.

Claim this listing