canli-mcp / Quant finance

Purged, embargoed cross-validation

Build k-fold cross-validation splits for labels that span time without leakage: training labels whose spans overlap a test fold are purged, and labels starting just after a test fold are embargoed. Reports what each fold removed, and optionally the indices.

The tool is purged_cv_splits in canli-mcp 0.22.0, free and MIT-licensed, with no account and no API key. It comes from canli-quant-mcp, which canli-mcp includes, and it is also its own server.

Arguments

As the server declares them
ArgumentRequiredType
spansyesany[][]
foldsnointeger
embargo_periodsnointeger
include_indicesnoboolean

How a model reaches it

Ask in plain words. The model finds purged_cv_splits with canli-mcp's find_tool, reads its arguments with describe_tool if it needs to, and runs it with run_tool. The call has this shape, with your values in place of the angle brackets:

{
  "name": "purged_cv_splits",
  "arguments": {
    "spans": "<any[][]>"
  }
}

Words that find it

Besides its name, title and description, find_tool matches a question to purged_cv_splits on these words: purged, k, fold, cross, validation, embargo, leakage, time, series, cv, overlapping, labels, machine, learning, finance.

More

Nothing here is investment advice.