Canli Capital MCP
An official MCP server from Canli Capital that provides quantitative finance validation tools. It allows agents to check backtests for overfitting and luck using Deflated Sharpe and PBO metrics, serving as an open research lab for verifying trading strategy viability through reproducible tests and signed receipts.
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.
https://canlicapital.com/mcpWhat its tools do
18 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.
Read-only (7)
Checks and signals
Each line is separate evidence, not a trust score.
- Passed Endpoint answered the live check ·
- Passed Endpoint and vendor documentation share a domain
- Uptime 100% over 90 days
- Availability 2 of 2 checks passed in 30 days
- Popularity 6 GitHub stars
What you can do with it
- Validate backtest Sharpe ratios against selection bias
- Check backtest overfitting probability
- Generate signed receipts for verification
Source and maintenance
- Last repository push
- Latest release
- canli-mcp-v0.6.0
- Maintenance checked
Protocol and capabilities
- Server
- canlicapital-validation-mcp 0.16.0
- MCP protocol negotiated in check
- 2025-11-25
- Tools
- 18 advertised
- Resources
- 4 advertised
- Resource templates
- 2 advertised
- Prompts
- 8 advertised
{
"tools": {
"listChanged": true
},
"prompts": {
"listChanged": true
},
"resources": {
"listChanged": true
},
"completions": {}
}Server-provided instructions
Untrusted server output shown for inspection. It is not Koskamo guidance and is excluded from knowledge search.
Tools
18 advertised
validate_deflated_sharpe — Validate deflated Sharpe
Deflated Sharpe ratio: the probability (0 to 1) that the selected strategy's Sharpe beats the best that luck gives across the variants tried, with the probabilistic Sharpe and that luck benchmark. Send the seven statistics or a return series. With every variant's returns use validate_overfitting; luck as a trial count, validate_luck_trials; a multiple-testing haircut, validate_haircut_sharpe. A deflated Sharpe or overfitting probability above or below any threshold is not admission to anything and is not a forecast.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"skew": {
"type": "number",
"maximum": 20,
"minimum": -20,
"description": "Skewness of returns; 0 if Normal."
},
"returns": {
"type": "array",
"items": {
"type": "number"
},
"maxItems": 20000,
"minItems": 2,
"description": "Periodic returns as fractions (0.01 = 1%), oldest first; replaces the Sharpe, observations, skew and kurtosis."
},
"observations": {
"type": "integer",
"maximum": 1000000,
"minimum": 2,
"description": "Number of return observations."
},
"periods_per_year": {
"type": "number",
"maximum": 10000,
"minimum": 1,
"description": "Periods per year: 252 daily, 365 crypto, 52 weekly, 12 monthly."
},
"non_excess_kurtosis": {
"type": "number",
"maximum": 100,
"minimum": 1,
"description": "Kurtosis, not excess kurtosis; 3 if Normal."
},
"observed_sharpe_annualized": {
"type": "number",
"maximum": 10,
"minimum": -10,
"description": "Annualized Sharpe as observed."
},
"effective_independent_trials": {
"type": "integer",
"maximum": 10000000,
"minimum": 2,
"description": "Independent variants tried before choosing this one."
},
"cross_trial_sharpe_sd_annualized": {
"type": "number",
"maximum": 10,
"minimum": 0,
"description": "Standard deviation of annualized Sharpe across those trials."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"data": {
"type": "object",
"properties": {}
},
"note": {
"type": "string"
},
"error": {
"anyOf": [
{
"type": "object",
"properties": {}
},
{
"type": "null"
}
]
},
"limits": {
"type": "array",
"items": {
"type": "string"
}
},
"receipt": {
"anyOf": [
{
"type": "object",
"properties": {}
},
{
"type": "null"
}
]
},
"computed": {
"type": "string"
}
},
"description": "data.result holds the statistics (data.plain_reading states them); limits say what the result does not establish; receipt ({id, url}) is the signed record, null when none was stored; error ({code, message}) is set only on refusal."
}{
"title": "Validate deflated Sharpe",
"readOnlyHint": false,
"openWorldHint": true,
"destructiveHint": false
}validate_overfitting — Validate overfitting (CSCV)
Probability of backtest overfitting (0 to 1) by CSCV: how often the in-sample best variant falls below the out-of-sample median. Needs every variant's returns (periods by variants); with summary statistics only, use validate_deflated_sharpe. A deflated Sharpe or overfitting probability above or below any threshold is not admission to anything and is not a forecast.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"matrix"
],
"properties": {
"seed": {
"type": "number",
"description": "Sampling seed; default 42."
},
"matrix": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "number"
},
"maxItems": 200
},
"maxItems": 20000,
"minItems": 2,
"description": "Returns as fractions, one row per period, one column per variant."
},
"n_splits": {
"type": "integer",
"description": "Even number of blocks, at least 2; default 16.",
"exclusiveMinimum": 0
},
"max_combinations": {
"type": "integer",
"maximum": 2000,
"description": "Most splits evaluated, up to 2000 (default).",
"exclusiveMinimum": 0
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"data": {
"type": "object",
"properties": {}
},
"note": {
"type": "string"
},
"error": {
"anyOf": [
{
"type": "object",
"properties": {}
},
{
"type": "null"
}
]
},
"limits": {
"type": "array",
"items": {
"type": "string"
}
},
"receipt": {
"anyOf": [
{
"type": "object",
"properties": {}
},
{
"type": "null"
}
]
},
"computed": {
"type": "string"
}
},
"description": "data.result holds the statistics (data.plain_reading states them); limits say what the result does not establish; receipt ({id, url}) is the signed record, null when none was stored; error ({code, message}) is set only on refusal."
}{
"title": "Validate overfitting (CSCV)",
"readOnlyHint": false,
"openWorldHint": true,
"destructiveHint": false
}validate_reality_check — Data-snooping tests (SPA, Reality Check, StepM)
Data-snooping tests on every variant a search tried: Hansen's SPA p-value that the best beat the benchmark only by luck, White's Reality Check, and the variants Romano-Wolf StepM finds better. Send all variants tried, not only the winners. A deflated Sharpe or overfitting probability above or below any threshold is not admission to anything and is not a forecast.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"reps": {
"type": "integer",
"maximum": 400000,
"minimum": 500,
"description": "Bootstrap draws; default 2000."
},
"seed": {
"type": "integer",
"description": "Sampling seed; default 42."
},
"alpha": {
"type": "number",
"maximum": 0.5,
"description": "Familywise error for StepM; default 0.05.",
"exclusiveMinimum": 0
},
"matrix": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "number"
},
"maxItems": 200
},
"maxItems": 20000,
"minItems": 30,
"description": "Returns of every variant the search tried, one row per period, one column per variant."
},
"benchmark": {
"type": "array",
"items": {
"type": "number"
},
"maxItems": 20000,
"minItems": 30,
"description": "Benchmark return per period; default zero."
},
"matrix_file": {
"type": "string",
"maxLength": 4096,
"minLength": 1,
"description": "Path to a CSV or JSON with one numeric column per variant, instead of matrix."
},
"block_length": {
"type": "integer",
"maximum": 10000,
"minimum": 1,
"description": "Mean bootstrap block in periods; default round(n^(1/3))."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"data": {
"type": "object",
"properties": {}
},
"note": {
"type": "string"
},
"error": {
"anyOf": [
{
"type": "object",
"properties": {}
},
{
"type": "null"
}
]
},
"limits": {
"type": "array",
"items": {
"type": "string"
}
},
"receipt": {
"anyOf": [
{
"type": "object",
"properties": {}
},
{
"type": "null"
}
]
},
"computed": {
"type": "string"
}
},
"description": "data.result holds the statistics (data.plain_reading states them); limits say what the result does not establish; receipt ({id, url}) is the signed record, null when none was stored; error ({code, message}) is set only on refusal."
}{
"title": "Data-snooping tests (SPA, Reality Check, StepM)",
"readOnlyHint": false,
"openWorldHint": true,
"destructiveHint": false
}validate_paper_evidence — Validate paper evidence
Checks paper-evidence.v0 structure and disclosures. With CANLI_LOCAL=1, record_file reads an export bundle and journal_file verifies signatures, source hashes and recomputed claims. Without a journal, source facts and signatures are unchecked. Local files are never uploaded. This verdict is about the series exactly as submitted. The service never saw the data source, its costs, survivorship, or any lookahead in how the series was built.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"record": {
"type": "object",
"description": "A canli.paper-evidence.v0 record."
},
"signature": {
"type": "object",
"required": [
"scheme",
"public_key",
"signature"
],
"properties": {
"scheme": {
"type": "string",
"const": "Ed25519"
},
"signature": {
"type": "string",
"maxLength": 128
},
"public_key": {
"type": "string",
"maxLength": 64
}
},
"description": "Detached record signature for a signed inline record; requires journal_file.",
"additionalProperties": false
},
"record_file": {
"type": "string",
"maxLength": 1000,
"minLength": 1,
"description": "Local record or export-bundle JSON path; requires CANLI_LOCAL=1."
},
"journal_file": {
"type": "string",
"maxLength": 1000,
"minLength": 1,
"description": "Local signed journal to recompute and bind; requires CANLI_LOCAL=1."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"data": {
"type": "object",
"properties": {}
},
"note": {
"type": "string"
},
"error": {
"anyOf": [
{
"type": "object",
"properties": {}
},
{
"type": "null"
}
]
},
"limits": {
"type": "array",
"items": {
"type": "string"
}
},
"receipt": {
"anyOf": [
{
"type": "object",
"properties": {}
},
{
"type": "null"
}
]
},
"computed": {
"type": "string"
}
},
"description": "data.result holds the statistics (data.plain_reading states them); limits say what the result does not establish; receipt ({id, url}) is the signed record, null when none was stored; error ({code, message}) is set only on refusal."
}{
"title": "Validate paper evidence",
"readOnlyHint": false,
"openWorldHint": true,
"destructiveHint": false
}validate_breadth — Validate breadth ceiling
Book Sharpe ceiling from adding sleeves of this quality and correlation, the Sharpe at a sleeve count, and the sleeves a target needs. For portfolio construction; it validates no single strategy. This verdict is about the series exactly as submitted. The service never saw the data source, its costs, survivorship, or any lookahead in how the series was built.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"sleeve_sharpe",
"average_pairwise_correlation"
],
"properties": {
"target": {
"type": "number",
"description": "Target book Sharpe, for the sleeves it needs.",
"exclusiveMinimum": 0
},
"sleeves": {
"type": "integer",
"maximum": 500,
"minimum": 1,
"description": "Sleeve count, for that book's Sharpe."
},
"sleeve_sharpe": {
"type": "number",
"description": "Annualized Sharpe of one sleeve.",
"exclusiveMinimum": 0
},
"average_pairwise_correlation": {
"type": "number",
"maximum": 1,
"minimum": -1,
"description": "Average correlation between sleeves, -1 to 1."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"data": {
"type": "object",
"properties": {}
},
"note": {
"type": "string"
},
"error": {
"anyOf": [
{
"type": "object",
"properties": {}
},
{
"type": "null"
}
]
},
"limits": {
"type": "array",
"items": {
"type": "string"
}
},
"receipt": {
"anyOf": [
{
"type": "object",
"properties": {}
},
{
"type": "null"
}
]
},
"computed": {
"type": "string"
}
},
"description": "data.result holds the statistics (data.plain_reading states them); limits say what the result does not establish; receipt ({id, url}) is the signed record, null when none was stored; error ({code, message}) is set only on refusal."
}{
"title": "Validate breadth ceiling",
"readOnlyHint": false,
"openWorldHint": true,
"destructiveHint": false
}validate_track_record — Minimum track record length
Minimum track record length (observations and years) for an observed Sharpe to beat a benchmark at a confidence level; with observations, the record's probabilistic Sharpe so far. For live or paper records; to size a backtest for its trials, use validate_backtest_length. A deflated Sharpe or overfitting probability above or below any threshold is not admission to anything and is not a forecast.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"observed_sharpe_annualized",
"periods_per_year",
"skew",
"non_excess_kurtosis"
],
"properties": {
"skew": {
"type": "number",
"maximum": 20,
"minimum": -20,
"description": "Skewness of returns; 0 if Normal."
},
"confidence": {
"type": "number",
"description": "Between 0 and 1; default 0.95.",
"exclusiveMaximum": 1,
"exclusiveMinimum": 0
},
"observations": {
"type": "integer",
"maximum": 1000000,
"minimum": 2,
"description": "Record length so far, for its probabilistic Sharpe."
},
"periods_per_year": {
"type": "number",
"maximum": 10000,
"minimum": 1,
"description": "Periods per year: 252 daily, 365 crypto, 52 weekly, 12 monthly."
},
"non_excess_kurtosis": {
"type": "number",
"maximum": 100,
"minimum": 1,
"description": "Kurtosis, not excess kurtosis; 3 if Normal."
},
"observed_sharpe_annualized": {
"type": "number",
"maximum": 10,
"minimum": -10,
"description": "Annualized Sharpe as observed."
},
"benchmark_sharpe_annualized": {
"type": "number",
"maximum": 10,
"minimum": -10,
"description": "Annualized Sharpe to beat; default 0."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"data": {
"type": "object",
"properties": {}
},
"note": {
"type": "string"
},
"error": {
"anyOf": [
{
"type": "object",
"properties": {}
},
{
"type": "null"
}
]
},
"limits": {
"type": "array",
"items": {
"type": "string"
}
},
"receipt": {
"anyOf": [
{
"type": "object",
"properties": {}
},
{
"type": "null"
}
]
},
"computed": {
"type": "string"
}
},
"description": "data.result holds the statistics (data.plain_reading states them); limits say what the result does not establish; receipt ({id, url}) is the signed record, null when none was stored; error ({code, message}) is set only on refusal."
}{
"title": "Minimum track record length",
"readOnlyHint": false,
"openWorldHint": true,
"destructiveHint": false
}validate_backtest_length — Minimum backtest length
Minimum backtest length (years) before the best of N independent trials is not expected to reach a target Sharpe by luck; with backtest_years, the most trials those years allow. For planning a search; once it has a result, use validate_deflated_sharpe. A deflated Sharpe or overfitting probability above or below any threshold is not admission to anything and is not a forecast.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"backtest_years": {
"type": "number",
"maximum": 1000,
"description": "Backtest length in years, for the most trials it allows.",
"exclusiveMinimum": 0
},
"target_sharpe_annualized": {
"type": "number",
"maximum": 10,
"description": "In-sample annualized Sharpe you would call a discovery; default 1.",
"exclusiveMinimum": 0
},
"effective_independent_trials": {
"type": "integer",
"maximum": 1000000000,
"minimum": 2,
"description": "Independent trials tried (backtests, parameter sets, ideas)."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"data": {
"type": "object",
"properties": {}
},
"note": {
"type": "string"
},
"error": {
"anyOf": [
{
"type": "object",
"properties": {}
},
{
"type": "null"
}
]
},
"limits": {
"type": "array",
"items": {
"type": "string"
}
},
"receipt": {
"anyOf": [
{
"type": "object",
"properties": {}
},
{
"type": "null"
}
]
},
"computed": {
"type": "string"
}
},
"description": "data.result holds the statistics (data.plain_reading states them); limits say what the result does not establish; receipt ({id, url}) is the signed record, null when none was stored; error ({code, message}) is set only on refusal."
}{
"title": "Minimum backtest length",
"readOnlyHint": false,
"openWorldHint": true,
"destructiveHint": false
}validate_haircut_sharpe — Haircut Sharpe ratio
Haircut Sharpe for multiple testing (Harvey and Liu 2015): the Sharpe a single test would have needed, by Bonferroni and independent tests, and with the other tests' Sharpes, Holm and BHY. For the probability the Sharpe is real, use validate_deflated_sharpe. A deflated Sharpe or overfitting probability above or below any threshold is not admission to anything and is not a forecast.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"observed_sharpe_annualized",
"periods_per_year",
"observations"
],
"properties": {
"tests": {
"type": "integer",
"maximum": 100000000,
"minimum": 1,
"description": "Tests run, this one included; gives the Bonferroni and independent-test haircuts."
},
"observations": {
"type": "integer",
"maximum": 1000000,
"minimum": 3,
"description": "Return observations behind the Sharpe."
},
"autocorrelation": {
"type": "number",
"description": "Lag-1 autocorrelation of returns, -1 to 1; default 0. Corrects the annualized Sharpe (Lo 2002).",
"exclusiveMaximum": 1,
"exclusiveMinimum": -1
},
"periods_per_year": {
"type": "number",
"maximum": 10000,
"minimum": 1,
"description": "Periods per year: 252 daily, 365 crypto, 52 weekly, 12 monthly."
},
"observed_sharpe_annualized": {
"type": "number",
"maximum": 10,
"description": "Annualized Sharpe as observed.",
"exclusiveMinimum": 0
},
"other_sharpe_ratios_annualized": {
"type": "array",
"items": {
"type": "number",
"maximum": 10,
"minimum": -10
},
"maxItems": 10000,
"minItems": 1,
"description": "Annualized Sharpes of the other tests over the same observations; adds Holm and BHY."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"data": {
"type": "object",
"properties": {}
},
"note": {
"type": "string"
},
"error": {
"anyOf": [
{
"type": "object",
"properties": {}
},
{
"type": "null"
}
]
},
"limits": {
"type": "array",
"items": {
"type": "string"
}
},
"receipt": {
"anyOf": [
{
"type": "object",
"properties": {}
},
{
"type": "null"
}
]
},
"computed": {
"type": "string"
}
},
"description": "data.result holds the statistics (data.plain_reading states them); limits say what the result does not establish; receipt ({id, url}) is the signed record, null when none was stored; error ({code, message}) is set only on refusal."
}{
"title": "Haircut Sharpe ratio",
"readOnlyHint": false,
"openWorldHint": true,
"destructiveHint": false
}validate_luck_trials — Luck-equivalent trials
How many skill-less strategies a search would need for its best to reach this Sharpe by luck (Monte Carlo), and with a trial count, the chance it did. States luck as the best of N random tries; for the probability the Sharpe is real, use validate_deflated_sharpe. A deflated Sharpe or overfitting probability above or below any threshold is not admission to anything and is not a forecast.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"observed_sharpe_annualized",
"periods_per_year",
"observations"
],
"properties": {
"skew": {
"type": "number",
"maximum": 100,
"minimum": -100,
"description": "Skewness; below -0.5 the reading warns the counts are too generous."
},
"observations": {
"type": "integer",
"maximum": 1000000,
"minimum": 3,
"description": "Return observations behind the Sharpe."
},
"autocorrelation": {
"type": "number",
"description": "Lag-1 autocorrelation of returns, -1 to 1; default 0. Corrects the annualized Sharpe (Lo 2002).",
"exclusiveMaximum": 1,
"exclusiveMinimum": -1
},
"periods_per_year": {
"type": "number",
"maximum": 10000,
"minimum": 1,
"description": "Periods per year: 252 daily, 365 crypto, 52 weekly, 12 monthly."
},
"observed_sharpe_annualized": {
"type": "number",
"maximum": 20,
"minimum": -20,
"description": "Annualized Sharpe as observed."
},
"effective_independent_trials": {
"type": "integer",
"maximum": 1000000000,
"minimum": 1,
"description": "Independent trials tried; adds the chance the best reached this Sharpe by luck."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"data": {
"type": "object",
"properties": {}
},
"note": {
"type": "string"
},
"error": {
"anyOf": [
{
"type": "object",
"properties": {}
},
{
"type": "null"
}
]
},
"limits": {
"type": "array",
"items": {
"type": "string"
}
},
"receipt": {
"anyOf": [
{
"type": "object",
"properties": {}
},
{
"type": "null"
}
]
},
"computed": {
"type": "string"
}
},
"description": "data.result holds the statistics (data.plain_reading states them); limits say what the result does not establish; receipt ({id, url}) is the signed record, null when none was stored; error ({code, message}) is set only on refusal."
}{
"title": "Luck-equivalent trials",
"readOnlyHint": false,
"openWorldHint": true,
"destructiveHint": false
}audit_backtest — Audit a backtest
One-call audit of a strategy's returns. Headline: one test whose false-positive rate was measured on nine return shapes (White's Reality Check with variants, luck trials with Lo's correction without). Then deflated Sharpe, minimum track record and, with variants, overfitting and out-of-sample decay, each with its receipt, plus fix_next. Send every variant tried (variants_file) so trials are counted; point returns_file at a CSV instead of pasting. A deflated Sharpe or overfitting probability above or below any threshold is not admission to anything and is not a forecast.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"periods_per_year"
],
"properties": {
"returns": {
"type": "array",
"items": {
"type": "number"
},
"maxItems": 20000,
"minItems": 2,
"description": "Periodic returns as fractions (0.01 = 1%), oldest first; replaces the Sharpe, observations, skew and kurtosis."
},
"n_splits": {
"type": "integer",
"description": "Even number of blocks, at least 2; default 16.",
"exclusiveMinimum": 0
},
"variants": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "number"
},
"maxItems": 200
},
"maxItems": 20000,
"minItems": 2,
"description": "Optional returns of every variant tried (this one included), one row per period, one column per variant; adds the overfitting check."
},
"confidence": {
"type": "number",
"description": "Between 0 and 1; default 0.95.",
"exclusiveMaximum": 1,
"exclusiveMinimum": 0
},
"returns_file": {
"type": "string",
"maxLength": 4096,
"minLength": 1,
"description": "Path to a CSV or JSON of the returns on this machine (not on the hosted endpoint), instead of returns."
},
"variants_file": {
"type": "string",
"maxLength": 4096,
"minLength": 1,
"description": "Path to a CSV or JSON with one numeric column per variant, instead of variants."
},
"returns_column": {
"anyOf": [
{
"type": "string",
"maxLength": 200,
"minLength": 1
},
{
"type": "integer",
"minimum": 1
}
],
"description": "Column name or 1-based position, when returns_file has several numeric columns."
},
"periods_per_year": {
"type": "number",
"maximum": 10000,
"minimum": 1,
"description": "Periods per year: 252 daily, 365 crypto, 52 weekly, 12 monthly."
},
"benchmark_sharpe_annualized": {
"type": "number",
"maximum": 10,
"minimum": -10,
"description": "Annualized Sharpe to beat; default 0."
},
"effective_independent_trials": {
"type": "integer",
"maximum": 10000000,
"minimum": 2,
"description": "Independent variants tried before choosing this one. Optional with variants: counted from them, and the larger number is used."
},
"cross_trial_sharpe_sd_annualized": {
"type": "number",
"maximum": 10,
"minimum": 0,
"description": "Standard deviation of annualized Sharpe across those trials. Optional with variants: measured from them, and the larger is used."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"note": {
"type": "string"
},
"error": {
"anyOf": [
{
"type": "object",
"properties": {}
},
{
"type": "null"
}
]
},
"checks": {
"type": "object",
"properties": {}
},
"limits": {
"type": "array",
"items": {
"type": "string"
}
},
"not_run": {
"type": "object",
"properties": {}
},
"readings": {
"type": "object",
"properties": {}
}
},
"description": "checks holds each check's full validate_ result by name; readings one sentence per check; not_run the checks skipped and why."
}{
"title": "Audit a backtest",
"readOnlyHint": false,
"openWorldHint": true,
"destructiveHint": false
}verify_receipt — Verify a receipt
Verify a receipt offline: its Ed25519 signature against the bundled canlicapital.com key, its output hash and its id. Send an id to fetch it first, or the receipt itself. The receipt is content-hashed, reproducible from the open-source core it names, and signed with Ed25519 by a key published at https://canlicapital.com/.well-known/canli-receipt-keys.json.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"id": {
"type": "string",
"pattern": "^[0-9a-f]{24}$",
"description": "Receipt id from a validation result."
},
"receipt": {
"type": "object",
"description": "A receipt object, to verify without fetching."
},
"include_receipt": {
"type": "boolean",
"description": "With id: also return the stored receipt."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"error": {
"anyOf": [
{
"type": "object",
"properties": {}
},
{
"type": "null"
}
]
},
"valid": {
"type": "boolean"
},
"checks": {},
"key_id": {
"type": [
"string",
"null"
]
},
"meaning": {
"type": "string"
},
"receipt_id": {
"type": [
"string",
"null"
]
}
},
"description": "valid is true only when the signature, output hash and content id all check out; checks lists each."
}{
"title": "Verify a receipt",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}service_status — Service status
Whether the validation API is up, with its quotas; check after a timeout before resubmitting. No key. This verdict is about the series exactly as submitted. The service never saw the data source, its costs, survivorship, or any lookahead in how the series was built.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {},
"additionalProperties": false
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"data": {
"type": "object",
"properties": {}
},
"error": {
"anyOf": [
{
"type": "object",
"properties": {}
},
{
"type": "null"
}
]
},
"limits": {
"type": "array",
"items": {
"type": "string"
}
}
},
"description": "data.store_reachable, data.quotas and, when available, data.usage for this key."
}{
"title": "Service status",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}backtest_strategy — Backtest a rule over a parameter grid, validated
Backtest a rule on your prices over a whole parameter grid, then validate the best with the count of variants actually run: deflated Sharpe, overfitting probability, minimum track record, vs buy and hold, after costs. A backtest, deflated or not, is not a forecast and not advice.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"family"
],
"properties": {
"grid": {
"type": "object",
"description": "Values per parameter, e.g. {\"fast\":[10,20],\"slow\":[50,200]}; every valid combination runs (max 200).",
"additionalProperties": {
"anyOf": [
{
"type": "number"
},
{
"type": "array",
"items": {
"type": "number"
}
}
]
}
},
"dates": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional ISO dates, one per value."
},
"family": {
"enum": [
"buy_and_hold",
"sma_cross",
"momentum",
"mean_reversion",
"breakout"
],
"type": "string",
"description": "sma_cross (fast, slow), momentum (lookback, skip), mean_reversion (window, entry_z), breakout (lookback), buy_and_hold."
},
"prices": {
"type": "array",
"items": {
"type": "number"
},
"description": "Prices, oldest first."
},
"cost_bps": {
"type": "number",
"minimum": 0,
"description": "Cost per unit of turnover, bps; default 5."
},
"allow_short": {
"type": "boolean",
"description": "Short instead of flat; default false."
},
"prices_file": {
"type": "string",
"description": "CSV or JSON of prices on this machine; local server only."
},
"prices_column": {
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
}
],
"description": "Column name or 1-based position."
},
"periods_per_year": {
"type": "number",
"description": "252 daily (default), 365 crypto, 52 weekly, 12 monthly."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"limits": {
"type": "array",
"items": {
"type": "string"
}
},
"source": {
"type": "object",
"properties": {}
},
"selected": {
"type": "object",
"properties": {}
},
"variants": {
"type": "object",
"properties": {}
},
"validation": {
"type": "object",
"properties": {}
},
"buy_and_hold": {
"type": "object",
"properties": {}
},
"plain_reading": {
"type": "string"
}
},
"description": "selected holds the best variant's parameters and metrics; validation the deflated Sharpe, overfitting probability and minimum track record counting every variant run; plain_reading states them."
}{
"title": "Backtest a rule over a parameter grid, validated",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}summarize_series — Summarize a price or return series
A long price or return series in about 100 words plus fields: growth, risk, dated drawdowns, trend, volatility regime, tails, jumps, stale data. Use instead of reading raw bars. Nothing here is a forecast or advice.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"name": {
"type": "string",
"description": "Label for the text."
},
"dates": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional ISO dates, one per value."
},
"prices": {
"type": "array",
"items": {
"type": "number"
},
"description": "Prices, oldest first; or returns, or series_file."
},
"returns": {
"type": "array",
"items": {
"type": "number"
},
"description": "Returns as fractions, oldest first."
},
"series_file": {
"type": "string",
"description": "CSV or JSON of prices or returns on this machine; local server only."
},
"series_kind": {
"enum": [
"prices",
"returns"
],
"type": "string",
"description": "series_file holds; default prices."
},
"series_column": {
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
}
],
"description": "Column name or 1-based position."
},
"periods_per_year": {
"type": "number",
"description": "252 daily (default), 365 crypto, 52 weekly, 12 monthly."
},
"benchmark_returns": {
"type": "array",
"items": {
"type": "number"
},
"description": "Same-period benchmark returns; adds beta."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"risk": {
"type": "object",
"properties": {}
},
"text": {
"type": "string"
},
"jumps": {
"type": "object",
"properties": {}
},
"tails": {
"type": "object",
"properties": {}
},
"trend": {
"type": "object",
"properties": {}
},
"growth": {
"type": "object",
"properties": {}
},
"limits": {
"type": "array",
"items": {
"type": "string"
}
},
"source": {
"type": "object",
"properties": {}
},
"drawdown": {
"type": "object",
"properties": {}
},
"volatility": {
"anyOf": [
{
"type": "object",
"properties": {}
},
{
"type": "null"
}
]
}
},
"description": "text is the summary to read; the other fields hold each figure by the rule named in it."
}{
"title": "Summarize a price or return series",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}stress_test — Stress-test a strategy's returns
Stress a strategy's returns: bootstrap histories (how often the drawdown limit breaks or Sharpe turns negative) and named crash, volatility, repeat and stuck-position scenarios, with a fragility share. Frequencies over resampled histories are not forecasts of the future.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"seed": {
"type": "integer",
"description": "Default 42; reproduces exactly."
},
"block": {
"type": "number",
"description": "Mean block length; default cube root of n."
},
"crash": {
"type": "number",
"description": "Crash size, negative; default min(-0.2, 3x worst period).",
"exclusiveMaximum": 0,
"exclusiveMinimum": -1
},
"paths": {
"type": "integer",
"description": "Default 1000."
},
"returns": {
"type": "array",
"items": {
"type": "number"
},
"description": "Strategy returns as fractions, oldest first."
},
"returns_file": {
"type": "string",
"description": "CSV or JSON of returns on this machine; local server only."
},
"drawdown_limit": {
"type": "number",
"description": "Fraction; default 0.2.",
"exclusiveMaximum": 1,
"exclusiveMinimum": 0
},
"outage_periods": {
"type": "integer",
"description": "Stuck periods after the worst; default 5."
},
"returns_column": {
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
}
],
"description": "Column name or 1-based position."
},
"periods_per_year": {
"type": "number",
"description": "252 daily (default), 365 crypto, 52 weekly, 12 monthly."
},
"volatility_multiplier": {
"type": "number",
"description": "Default 2."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"limits": {
"type": "array",
"items": {
"type": "string"
}
},
"source": {
"type": "object",
"properties": {}
},
"baseline": {
"type": "object",
"properties": {}
},
"fragility": {
"type": "object",
"properties": {}
},
"resampled": {
"type": "object",
"properties": {}
},
"scenarios": {
"type": "array",
"items": {}
},
"plain_reading": {
"type": "string"
}
},
"description": "resampled holds bootstrap percentiles and breach frequencies; scenarios each named stress and its rule; fragility the share of histories breaking the limit or losing."
}{
"title": "Stress-test a strategy's returns",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}check_feasibility — Check a plan against broker limits and impact
Check a trading plan before it trades: broker order-rate and minimum-order limits, 2026 US day-trading rules, square-root market impact with crowding, and the capital where costs eat the return. Checks the plan as described against published broker limits and a market-impact model; it never contacts a broker or sees an account.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"capital_usd",
"orders_per_rebalance",
"rebalances_per_year",
"turnover_per_year",
"adv_usd",
"daily_volatility"
],
"properties": {
"broker": {
"enum": [
"alpaca",
"ibkr",
"other"
],
"type": "string",
"description": "Default other."
},
"copies": {
"type": "integer",
"description": "Agents trading the same signal at once; default 1."
},
"account": {
"enum": [
"cash",
"margin"
],
"type": "string"
},
"adv_usd": {
"type": "number",
"description": "Daily dollar volume of a typical holding."
},
"asset_class": {
"enum": [
"us_equity",
"crypto",
"futures",
"fx",
"options"
],
"type": "string"
},
"capital_usd": {
"type": "number"
},
"daily_volatility": {
"type": "number",
"maximum": 1,
"description": "Of a typical holding, e.g. 0.02."
},
"turnover_per_year": {
"type": "number",
"minimum": 0,
"description": "Buys plus sells a year / capital."
},
"impact_coefficient": {
"type": "number",
"description": "Square-root law Y; default 1."
},
"rebalances_per_year": {
"type": "number"
},
"spread_and_fees_bps": {
"type": "number",
"minimum": 0,
"description": "Per trade; default 0."
},
"orders_per_rebalance": {
"type": "integer"
},
"expected_gross_return": {
"type": "number",
"minimum": -1,
"description": "Annual, before costs; adds capacity."
},
"minutes_per_rebalance": {
"type": "number",
"description": "Default 1."
},
"orders_per_minute_limit": {
"type": "number",
"description": "If the broker's is not on file."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"checks": {
"type": "array",
"items": {}
},
"limits": {
"type": "array",
"items": {
"type": "string"
}
},
"sources": {
"type": "object",
"properties": {}
},
"verdict": {
"type": "string"
},
"to_change": {
"type": "array",
"items": {
"type": "string"
}
},
"plain_reading": {
"type": "string"
}
},
"description": "verdict summarizes the checks; each check has a status (ok, warning, blocking, unknown), its finding and numbers; to_change lists what to fix."
}{
"title": "Check a plan against broker limits and impact",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}check_leakage — Check a signal for lookahead
Does a signal look ahead? plan gives cuts; rerun your code on the first cut rows for each, then compare. Rows that changed used later rows; the result names the pattern and horizon. No code is sent. A pass covers only these cuts: the columns are the caller's, and survivorship, vendor revisions or a leak no cut reaches leave no trace.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"action"
],
"properties": {
"cuts": {
"type": "array",
"items": {
"type": "integer"
},
"description": "compare: plan's cuts."
},
"seed": {
"type": "integer"
},
"action": {
"enum": [
"plan",
"compare"
],
"type": "string"
},
"columns": {
"type": "object",
"description": "compare: {name: {full: [all rows], prefixes: [[first cuts[i] rows], ...]}}, null for missing.",
"additionalProperties": {
"type": "object",
"properties": {}
}
},
"prefixes": {
"type": "integer",
"description": "plan: cuts, default 5."
},
"tolerance": {
"type": "number",
"description": "Default 1e-9."
},
"timestamps": {
"type": "array",
"items": {
"type": "string"
}
},
"columns_file": {
"type": "string",
"description": "compare, on your machine: a JSON file {cuts, columns} instead."
},
"observations": {
"type": "integer",
"description": "plan: rows in the series."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"cuts": {
"type": "array",
"items": {
"type": "number"
}
},
"seed": {
"type": "number"
},
"limits": {
"type": "array",
"items": {
"type": "string"
}
},
"source": {
"type": "object",
"properties": {}
},
"columns": {
"type": "object",
"properties": {}
},
"verdict": {
"type": "string"
},
"plain_reading": {
"type": "string"
},
"flagged_columns": {
"type": "array",
"items": {
"type": "string"
}
}
},
"description": "plan: cuts and seed. compare: verdict over all columns, flagged_columns, and per column its pattern, sentence and per-cut changes."
}{
"title": "Check a signal for lookahead",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}placebo_test — Test a research pipeline on placebo data
Does your pipeline find edges in noise? plan writes placebo files (your data's returns in random orders, so nothing is predictable); run the whole pipeline on real.csv and on each, then compare for a p-value that counts every choice it makes. Beating the placebos shows the pipeline finds more in the real order of the returns than in random orders of the same returns; it does not show the edge survives costs, capacity or the future.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"action"
],
"properties": {
"kind": {
"enum": [
"prices",
"returns"
],
"type": "string",
"description": "plan: default prices."
},
"real": {
"type": "number",
"description": "compare: the pipeline's result on the real data."
},
"seed": {
"type": "integer"
},
"action": {
"enum": [
"plan",
"compare"
],
"type": "string"
},
"method": {
"enum": [
"permute",
"block_permute",
"stationary_bootstrap"
],
"type": "string"
},
"columns": {
"type": "object",
"description": "plan: {asset: [values]} instead of data_file.",
"additionalProperties": {
"type": "array",
"items": {
"type": "number"
}
}
},
"placebos": {
"type": "integer",
"description": "plan: default 19, up to 199."
},
"data_file": {
"type": "string",
"description": "plan, on your machine: CSV or JSON, a column per asset, dates optional."
},
"lower_is_better": {
"type": "boolean"
},
"placebo_results": {
"type": "array",
"items": {
"type": "number"
},
"description": "compare: its result on each placebo, in file order."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"dir": {
"type": "string"
},
"files": {
"type": "array",
"items": {
"type": "string"
}
},
"limits": {
"type": "array",
"items": {
"type": "string"
}
},
"source": {
"type": "object",
"properties": {}
},
"p_value": {
"type": "number"
},
"placebo": {
"type": "object",
"properties": {}
},
"verdict": {
"type": "string"
},
"plain_reading": {
"type": "string"
}
},
"description": "plan: dir, real.csv and the placebo files, method and seed. compare: verdict, p_value, and what the pipeline found on the placebos."
}{
"title": "Test a research pipeline on placebo data",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}Prompts
8 advertised
validate_backtest — Validate a backtest before trusting it
Walk through the deflated Sharpe, overfitting and track-record checks for one strategy, and report what the numbers do not establish.
- strategy
- What the strategy is and what data it was backtested on (required)
- variants_tried
- How many variants, parameter sets or ideas were tried before this one
track_record_needed — How long a track record do I need?
The minimum track record length for a Sharpe to clear a benchmark, with the record's own probabilistic Sharpe if its length is known.
- sharpe
- The observed annualized Sharpe ratio (required)
- frequency
- How often returns are measured: daily, weekly or monthly (required)
- benchmark
- The annualized Sharpe it must beat; 0 if not given
- record_length
- How long the record already is, if known
backtest_and_validate — Backtest a rule and check whether the best variant is luck
Run a strategy family over a parameter grid on your prices, then read the deflated Sharpe and overfitting probability that count every variant run.
- prices_file
- Path to a CSV of prices on this machine (required)
- family
- sma_cross, momentum, mean_reversion, breakout or buy_and_hold
stress_my_strategy — How fragile is this strategy?
Resampled histories and named crash, volatility, repeat and outage scenarios for a strategy's returns.
- returns_file
- Path to a CSV of the strategy's returns (required)
- drawdown_limit
- The drawdown you could not live with, such as 0.2
production_check — Will this plan survive a real broker?
Order-rate and minimum-order limits, 2026 day-trading rules, market impact, crowding and capacity for a trading plan.
- plan
- Capital, broker, how many orders per rebalance, how often, turnover, and what it trades (required)
summarize_market_series — Read a long series in a hundred words
Summarize a price or return file instead of reading its rows.
- series_file
- Path to a CSV of prices or returns (required)
- kind
- prices or returns; default prices
check_signal_for_lookahead — Does my signal look ahead?
Rerun your own signal code on prefixes the server picks, and find any value that depends on later rows.
- rows
- Rows in the full series the signal is computed on (required)
test_pipeline_on_placebos — Does my pipeline find edges in noise?
Run your whole research pipeline on placebo data, where nothing can be predicted, and see whether its real result beats what it finds there.
- data_file
- Path to the CSV or JSON the pipeline reads: a column per asset, dates optional (required)
Resources
4 advertised
limits — What a result does not establish
The boundary sentences every validation result carries.
canli://limitssources — Sources and independent checks
The papers behind each validator and how each is checked against them.
canli://sourcesstrategy-spec — Strategy families and their parameters
JSON Schema of backtest_strategy's families, parameters and rules.
canli://strategy-specopenapi — The validation API's OpenAPI 3.1 document
Generated from the endpoints that exist; fetched from canlicapital.com when read.
canli://openapitool-schema — A tool's exact JSON Schemas
Input and output JSON Schema and the description of one tool, for writing code against it.
canli://schemas/{tool}example — A working call, in Python, JavaScript or curl
Runnable client code calling one tool with valid example arguments.
canli://examples/{language}/{tool}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.
- 2026-11-02: 3 of 3 checks answered
- 2026-11-03: 4 of 4 checks answered
- 2026-11-04: 4 of 4 checks answered
- 2026-11-05: 4 of 4 checks answered
- 2026-11-06: 4 of 4 checks answered
- 2026-11-07: 2 of 2 checks answered
- 2026-11-09: 1 of 1 checks answered
- 2026-11-10: 2 of 2 checks answered
- 2026-11-11: 1 of 1 checks answered
- 2026-11-12: 1 of 1 checks answered
- 2026-11-14: 1 of 1 checks answered
- 2026-11-15: 2 of 2 checks answered
- 2026-11-16: 4 of 4 checks answered
- 2026-11-17: 5 of 5 checks answered
- 2026-11-18: 5 of 5 checks answered
- 2026-11-19: 4 of 4 checks answered
- 2026-11-20: 3 of 3 checks answered
- 2026-11-21: 4 of 4 checks answered
- 2026-11-22: 4 of 4 checks answered
- 2026-11-23: 3 of 3 checks answered
- 2026-11-24: 4 of 4 checks answered
- 2026-11-25: 4 of 4 checks answered
- 2026-11-26: 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
- 1613 ms
- 95th percentile latency
- 1682 ms
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · probe · passed · 1536 ms · 18 tool(s), 4 resource(s), 2 resource template(s), 8 prompt(s)
- · probe · passed · 1690 ms · metadata changed · 18 tool(s), 4 resource(s), 2 resource template(s), 8 prompt(s)
- · repository · passed · metadata changed · updated
- · repository · passed · metadata changed · unchanged
- · repository · passed · metadata changed · updated
- · 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.
Claude Code
claude mcp add --transport http canli-capital-mcp https://canlicapital.com/mcpCodex
codex mcp add canli-capital-mcp --url https://canlicapital.com/mcpCursor
{
"mcpServers": {
"canli-capital-mcp": {
"url": "https://canlicapital.com/mcp"
}
}
}Cline
{
"mcpServers": {
"canli-capital-mcp": {
"type": "streamableHttp",
"url": "https://canlicapital.com/mcp",
"disabled": false
}
}
}VS Code
{
"servers": {
"canli-capital-mcp": {
"type": "http",
"url": "https://canlicapital.com/mcp"
}
}
}Gemini CLI
gemini mcp add --transport http canli-capital-mcp https://canlicapital.com/mcpClaude Desktop
https://canlicapital.com/mcpWindsurf
{
"mcpServers": {
"canli-capital-mcp": {
"serverUrl": "https://canlicapital.com/mcp"
}
}
}Let your agent find its tools
Find servers like Canli Capital MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.
Other data and analytics servers
Do you run Canli Capital 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.