{
  "notice": "bxzxxr MCP archive: a record of what public MCP servers declared when we listed them (we never call their tools). It is data, not a rating: nothing here says a server is safe, secure, verified or trustworthy, and a server can change after we looked. Secrets we detected are redacted; redacted tool lists are withheld and only their hash is shown.",
  "infrastructure": {
    "host": "canlicapital.com",
    "site": "canlicapital.com",
    "addresses": [
      {
        "address": "216.150.1.65",
        "endpoints": 256,
        "shared_infrastructure": true,
        "network": {
          "asn": 16509,
          "name": "AMAZON-02 - Amazon.com, Inc.",
          "prefix": "216.150.1.0/24",
          "country": "US"
        }
      },
      {
        "address": "216.150.1.1",
        "endpoints": 933,
        "shared_infrastructure": true,
        "network": {
          "asn": 16509,
          "name": "AMAZON-02 - Amazon.com, Inc.",
          "prefix": "216.150.1.0/24",
          "country": "US"
        }
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "216.150.1.65",
          "216.150.1.1"
        ],
        "first_seen": "2026-11-22T19:22:01.663Z",
        "last_seen": "2026-11-22T19:22:01.663Z",
        "checks": 1
      },
      {
        "addresses": [
          "216.150.1.129",
          "216.150.16.129"
        ],
        "first_seen": "2026-11-21T14:56:01.287Z",
        "last_seen": "2026-11-21T14:56:01.287Z",
        "checks": 1
      }
    ],
    "hosting": [
      {
        "value": "Vercel",
        "evidence": "Server header \"Vercel\""
      }
    ],
    "software": [],
    "server_info": {
      "name": "canlicapital-validation-mcp",
      "version": "0.16.0",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "server": "Vercel",
      "strict-transport-security": "max-age=63072000",
      "access-control-allow-origin": "*"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 1146,
      "sample": [
        {
          "id": "26",
          "url": "https://mrk.ae/api/mcp",
          "server_name": "ae.mrk/dubai-property",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:32:02.233Z"
        },
        {
          "id": "39",
          "url": "https://www.almostimpossible.agency/mcp",
          "server_name": "agency.almostimpossible/site",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:33:00.789Z"
        },
        {
          "id": "144",
          "url": "https://mcp.agentgates.ai/compute",
          "server_name": "ai.agentgates/compute",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:34:01.701Z"
        },
        {
          "id": "182",
          "url": "https://www.ai-portal.ai/mcp",
          "server_name": "ai.ai-portal/ai-portal",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:35:03.203Z"
        },
        {
          "id": "225",
          "url": "https://amigurumi.ai/mcp",
          "server_name": "ai.amigurumi/patterns",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:36:00.833Z"
        },
        {
          "id": "378",
          "url": "https://bidbetter.ai/api/mcp",
          "server_name": "ai.bidbetter/collector-car-values",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:40:02.216Z"
        },
        {
          "id": "379",
          "url": "https://bidclub.ai/api/mcp",
          "server_name": "ai.bidclub/bidclub",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:40:02.647Z"
        },
        {
          "id": "390",
          "url": "https://blinibot.ai/api/agents/mcp",
          "server_name": "ai.blinibot/agent-lounge",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:40:03.345Z"
        },
        {
          "id": "395",
          "url": "https://property.bluebed.ai/mcp",
          "server_name": "ai.bluebed.property/new-launches",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:41:00.904Z"
        },
        {
          "id": "413",
          "url": "https://booqer.ai/mcp",
          "server_name": "ai.booqer/booqer",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:41:01.200Z"
        },
        {
          "id": "458",
          "url": "https://calaf.ai/api/mcp",
          "server_name": "ai.calaf/seeds",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:42:02.199Z"
        },
        {
          "id": "465",
          "url": "https://www.canaryusers.ai/api/mcp",
          "server_name": "ai.canaryusers/canaryusers",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:42:02.398Z"
        },
        {
          "id": "670",
          "url": "https://www.decisionlog.ai/api/mcp",
          "server_name": "ai.decisionlog/mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:46:01.434Z"
        },
        {
          "id": "787",
          "url": "https://mcp.tenda.eshmere.ai/mcp",
          "server_name": "ai.eshmere/tenda",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:50:03.224Z"
        },
        {
          "id": "1083",
          "url": "https://govrelations.ai/mcp",
          "server_name": "ai.govrelations/govrelations",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:54:01.421Z"
        },
        {
          "id": "1134",
          "url": "https://www.heycai.ai/mcp",
          "server_name": "ai.heycai/clinic-tools",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:56:01.601Z"
        },
        {
          "id": "1183",
          "url": "https://hustlin.ai/api/mcp",
          "server_name": "ai.hustlin/hustlin",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:57:02.898Z"
        },
        {
          "id": "1300",
          "url": "https://kifly.ai/api/mcp",
          "server_name": "ai.kifly/mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T05:00:09.397Z"
        },
        {
          "id": "1353",
          "url": "https://kwekuanansi.ai/mcp/africa-contacts",
          "server_name": "ai.kwekuanansi/africa-contacts",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T05:01:00.822Z"
        },
        {
          "id": "1354",
          "url": "https://kwekuanansi.ai/mcp/africa-pay",
          "server_name": "ai.kwekuanansi/africa-pay",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T05:02:02.224Z"
        }
      ]
    },
    "same_site": {
      "total": 3,
      "sample": [
        {
          "id": "27586",
          "url": "https://canlicapital.com/mcp/fundamentals",
          "server_name": "io.github.arhancanli/canli-fundamentals-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:19:02.602Z"
        },
        {
          "id": "27587",
          "url": "https://canlicapital.com/mcp/canli",
          "server_name": "io.github.arhancanli/canli-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:20:02.999Z"
        },
        {
          "id": "27588",
          "url": "https://canlicapital.com/mcp/research",
          "server_name": "io.github.arhancanli/canli-research-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:21:01.683Z"
        }
      ]
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "io.github.arhancanli",
      "total": 7,
      "sample": [
        {
          "name": "io.github.arhancanli/canli-backtest-mcp",
          "title": "Canli Backtest"
        },
        {
          "name": "io.github.arhancanli/canli-fundamentals-mcp",
          "title": "Canli Fundamentals"
        },
        {
          "name": "io.github.arhancanli/canli-markets-mcp",
          "title": "Canli Markets"
        },
        {
          "name": "io.github.arhancanli/canli-mcp",
          "title": "Canli Capital"
        },
        {
          "name": "io.github.arhancanli/canli-paper-trading-mcp",
          "title": "Canli Paper Trading"
        },
        {
          "name": "io.github.arhancanli/canli-quant-mcp",
          "title": "Canli Quant"
        },
        {
          "name": "io.github.arhancanli/canli-research-mcp",
          "title": "Canli Research"
        }
      ]
    },
    "same_repository": {
      "repository_url": "https://github.com/arhancanli/canlicapital",
      "total": 7,
      "sample": [
        {
          "name": "io.github.arhancanli/canli-backtest-mcp",
          "title": "Canli Backtest"
        },
        {
          "name": "io.github.arhancanli/canli-fundamentals-mcp",
          "title": "Canli Fundamentals"
        },
        {
          "name": "io.github.arhancanli/canli-markets-mcp",
          "title": "Canli Markets"
        },
        {
          "name": "io.github.arhancanli/canli-mcp",
          "title": "Canli Capital"
        },
        {
          "name": "io.github.arhancanli/canli-paper-trading-mcp",
          "title": "Canli Paper Trading"
        },
        {
          "name": "io.github.arhancanli/canli-quant-mcp",
          "title": "Canli Quant"
        },
        {
          "name": "io.github.arhancanli/canli-research-mcp",
          "title": "Canli Research"
        }
      ]
    },
    "note": "Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators."
  },
  "endpoint": {
    "id": "27589",
    "server_name": "io.github.arhancanli/canli-validation-mcp",
    "url": "https://canlicapital.com/mcp",
    "host": "canlicapital.com",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-22T19:22:01.663Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "1311760885daeb91592bf875bf160b54225cb0f06063dbbdf2dc17da01c536c7",
    "first_listed_at": "2026-11-21T14:56:01.287Z",
    "created_at": "2026-11-21T09:15:03.632Z",
    "resolved_addresses": [
      "216.150.1.65",
      "216.150.1.1"
    ]
  },
  "server": {
    "name": "io.github.arhancanli/canli-validation-mcp",
    "title": "Canli Validation",
    "description": "Deflated Sharpe and PBO checks. A verdict is not admission to anything and is not a forecast.",
    "version": "0.16.0",
    "registry_status": "active",
    "repository_url": "https://github.com/arhancanli/canlicapital",
    "website_url": "https://canlicapital.com/developers#ai-assistant",
    "published_at": "2026-11-08T17:41:58.853Z",
    "updated_at": "2026-11-08T17:41:58.853Z",
    "first_seen": "2026-11-21T09:15:03.046Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-22T15:42:11.796Z"
  },
  "operator": {
    "key": "canlicapital.com",
    "name": "canlicapital.com",
    "platform": false,
    "marketplace": false
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 2,
    "answered": 2,
    "answered_percent": 100,
    "avg_listing_latency_ms": 900,
    "first_check_in_window": "2026-11-21T14:56:01.287Z",
    "consecutive_failures_now": 0,
    "days": [
      {
        "day": "2026-11-21",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-22",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "1311760885daeb91592bf875bf160b54225cb0f06063dbbdf2dc17da01c536c7",
    "tools": 18,
    "resources": 4,
    "prompts": 8,
    "first_seen": "2026-11-21T14:56:02.148Z",
    "tool_names": [
      "validate_deflated_sharpe",
      "validate_overfitting",
      "validate_reality_check",
      "validate_paper_evidence",
      "validate_breadth",
      "validate_track_record",
      "validate_backtest_length",
      "validate_haircut_sharpe",
      "validate_luck_trials",
      "audit_backtest",
      "verify_receipt",
      "service_status",
      "backtest_strategy",
      "summarize_series",
      "stress_test",
      "check_feasibility",
      "check_leakage",
      "placebo_test"
    ],
    "declared": {
      "tools": [
        {
          "name": "validate_deflated_sharpe",
          "title": "Validate deflated Sharpe",
          "description": "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.",
          "inputSchema": {
            "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
          },
          "outputSchema": {
            "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."
          },
          "annotations": {
            "title": "Validate deflated Sharpe",
            "readOnlyHint": false,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "validate_overfitting",
          "title": "Validate overfitting (CSCV)",
          "description": "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.",
          "inputSchema": {
            "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
          },
          "outputSchema": {
            "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."
          },
          "annotations": {
            "title": "Validate overfitting (CSCV)",
            "readOnlyHint": false,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "validate_reality_check",
          "title": "Data-snooping tests (SPA, Reality Check, StepM)",
          "description": "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.",
          "inputSchema": {
            "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
          },
          "outputSchema": {
            "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."
          },
          "annotations": {
            "title": "Data-snooping tests (SPA, Reality Check, StepM)",
            "readOnlyHint": false,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "validate_paper_evidence",
          "title": "Validate paper evidence",
          "description": "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.",
          "inputSchema": {
            "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
          },
          "outputSchema": {
            "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."
          },
          "annotations": {
            "title": "Validate paper evidence",
            "readOnlyHint": false,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "validate_breadth",
          "title": "Validate breadth ceiling",
          "description": "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.",
          "inputSchema": {
            "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
          },
          "outputSchema": {
            "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."
          },
          "annotations": {
            "title": "Validate breadth ceiling",
            "readOnlyHint": false,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "validate_track_record",
          "title": "Minimum track record length",
          "description": "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.",
          "inputSchema": {
            "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
          },
          "outputSchema": {
            "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."
          },
          "annotations": {
            "title": "Minimum track record length",
            "readOnlyHint": false,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "validate_backtest_length",
          "title": "Minimum backtest length",
          "description": "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.",
          "inputSchema": {
            "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
          },
          "outputSchema": {
            "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."
          },
          "annotations": {
            "title": "Minimum backtest length",
            "readOnlyHint": false,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "validate_haircut_sharpe",
          "title": "Haircut Sharpe ratio",
          "description": "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.",
          "inputSchema": {
            "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
          },
          "outputSchema": {
            "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."
          },
          "annotations": {
            "title": "Haircut Sharpe ratio",
            "readOnlyHint": false,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "validate_luck_trials",
          "title": "Luck-equivalent trials",
          "description": "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.",
          "inputSchema": {
            "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
          },
          "outputSchema": {
            "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."
          },
          "annotations": {
            "title": "Luck-equivalent trials",
            "readOnlyHint": false,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "audit_backtest",
          "title": "Audit a backtest",
          "description": "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.",
          "inputSchema": {
            "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
          },
          "outputSchema": {
            "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."
          },
          "annotations": {
            "title": "Audit a backtest",
            "readOnlyHint": false,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "verify_receipt",
          "title": "Verify a receipt",
          "description": "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.",
          "inputSchema": {
            "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
          },
          "outputSchema": {
            "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."
          },
          "annotations": {
            "title": "Verify a receipt",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "service_status",
          "title": "Service status",
          "description": "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.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {},
            "additionalProperties": false
          },
          "outputSchema": {
            "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."
          },
          "annotations": {
            "title": "Service status",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "backtest_strategy",
          "title": "Backtest a rule over a parameter grid, validated",
          "description": "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.",
          "inputSchema": {
            "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
          },
          "outputSchema": {
            "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."
          },
          "annotations": {
            "title": "Backtest a rule over a parameter grid, validated",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "summarize_series",
          "title": "Summarize a price or return series",
          "description": "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.",
          "inputSchema": {
            "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
          },
          "outputSchema": {
            "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."
          },
          "annotations": {
            "title": "Summarize a price or return series",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "stress_test",
          "title": "Stress-test a strategy's returns",
          "description": "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.",
          "inputSchema": {
            "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
          },
          "outputSchema": {
            "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."
          },
          "annotations": {
            "title": "Stress-test a strategy's returns",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "check_feasibility",
          "title": "Check a plan against broker limits and impact",
          "description": "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.",
          "inputSchema": {
            "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
          },
          "outputSchema": {
            "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."
          },
          "annotations": {
            "title": "Check a plan against broker limits and impact",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "check_leakage",
          "title": "Check a signal for lookahead",
          "description": "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.",
          "inputSchema": {
            "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
          },
          "outputSchema": {
            "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."
          },
          "annotations": {
            "title": "Check a signal for lookahead",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "placebo_test",
          "title": "Test a research pipeline on placebo data",
          "description": "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.",
          "inputSchema": {
            "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
          },
          "outputSchema": {
            "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."
          },
          "annotations": {
            "title": "Test a research pipeline on placebo data",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [
        {
          "name": "limits",
          "uri": "canli://limits",
          "mimeType": "text/markdown",
          "description": "The boundary sentences every validation result carries."
        },
        {
          "name": "sources",
          "uri": "canli://sources",
          "mimeType": "text/markdown",
          "description": "The papers behind each validator and how each is checked against them."
        },
        {
          "name": "strategy-spec",
          "uri": "canli://strategy-spec",
          "mimeType": "application/json",
          "description": "JSON Schema of backtest_strategy's families, parameters and rules."
        },
        {
          "name": "openapi",
          "uri": "canli://openapi",
          "mimeType": "application/json",
          "description": "Generated from the endpoints that exist; fetched from canlicapital.com when read."
        }
      ],
      "prompts": [
        {
          "name": "validate_backtest",
          "description": "Walk through the deflated Sharpe, overfitting and track-record checks for one strategy, and report what the numbers do not establish.",
          "arguments": [
            {
              "name": "strategy",
              "required": true,
              "description": "What the strategy is and what data it was backtested on"
            },
            {
              "name": "variants_tried",
              "required": false,
              "description": "How many variants, parameter sets or ideas were tried before this one"
            }
          ]
        },
        {
          "name": "track_record_needed",
          "description": "The minimum track record length for a Sharpe to clear a benchmark, with the record's own probabilistic Sharpe if its length is known.",
          "arguments": [
            {
              "name": "sharpe",
              "required": true,
              "description": "The observed annualized Sharpe ratio"
            },
            {
              "name": "frequency",
              "required": true,
              "description": "How often returns are measured: daily, weekly or monthly"
            },
            {
              "name": "benchmark",
              "required": false,
              "description": "The annualized Sharpe it must beat; 0 if not given"
            },
            {
              "name": "record_length",
              "required": false,
              "description": "How long the record already is, if known"
            }
          ]
        },
        {
          "name": "backtest_and_validate",
          "description": "Run a strategy family over a parameter grid on your prices, then read the deflated Sharpe and overfitting probability that count every variant run.",
          "arguments": [
            {
              "name": "prices_file",
              "required": true,
              "description": "Path to a CSV of prices on this machine"
            },
            {
              "name": "family",
              "required": false,
              "description": "sma_cross, momentum, mean_reversion, breakout or buy_and_hold"
            }
          ]
        },
        {
          "name": "stress_my_strategy",
          "description": "Resampled histories and named crash, volatility, repeat and outage scenarios for a strategy's returns.",
          "arguments": [
            {
              "name": "returns_file",
              "required": true,
              "description": "Path to a CSV of the strategy's returns"
            },
            {
              "name": "drawdown_limit",
              "required": false,
              "description": "The drawdown you could not live with, such as 0.2"
            }
          ]
        },
        {
          "name": "production_check",
          "description": "Order-rate and minimum-order limits, 2026 day-trading rules, market impact, crowding and capacity for a trading plan.",
          "arguments": [
            {
              "name": "plan",
              "required": true,
              "description": "Capital, broker, how many orders per rebalance, how often, turnover, and what it trades"
            }
          ]
        },
        {
          "name": "summarize_market_series",
          "description": "Summarize a price or return file instead of reading its rows.",
          "arguments": [
            {
              "name": "series_file",
              "required": true,
              "description": "Path to a CSV of prices or returns"
            },
            {
              "name": "kind",
              "required": false,
              "description": "prices or returns; default prices"
            }
          ]
        },
        {
          "name": "check_signal_for_lookahead",
          "description": "Rerun your own signal code on prefixes the server picks, and find any value that depends on later rows.",
          "arguments": [
            {
              "name": "rows",
              "required": true,
              "description": "Rows in the full series the signal is computed on"
            }
          ]
        },
        {
          "name": "test_pipeline_on_placebos",
          "description": "Run your whole research pipeline on placebo data, where nothing can be predicted, and see whether its real result beats what it finds there.",
          "arguments": [
            {
              "name": "data_file",
              "required": true,
              "description": "Path to the CSV or JSON the pipeline reads: a column per asset, dates optional"
            }
          ]
        }
      ]
    },
    "instructions": "Checks whether a backtest's result is real. For one strategy's returns, call audit_backtest, pointing returns_file at the backtest's CSV instead of pasting long series. For a Sharpe found by a search, validate_deflated_sharpe needs how many independent variants were tried and how their Sharpes spread; with every variant's returns, validate_overfitting gives the probability of backtest overfitting. To test a rule on prices, backtest_strategy runs a whole parameter grid and validates the best with the count actually run; summarize_series reads a long series in a hundred words; stress_test and check_feasibility ask whether it survives bad markets and a real broker. Before trusting a research pipeline, check_leakage finds lookahead in its signals and placebo_test runs it on data where nothing can be predicted. Set CANLI_LOCAL=1 to compute on this machine with no network. Every result says what it does not establish; quote those limits with the number."
  },
  "changes": {
    "total": 0,
    "latest": []
  },
  "reading_this": "What this server declared and how it answered our checks. Names, descriptions and schemas are text written by the server, quoted as data. Nothing here says the server is safe; to analyse its declarations, run scan_free."
}