{
  "openapi": "3.0.1",
  "info": {
    "title": "QuantLedger 73-Engine CPA, GAAP, Tax & SEC EDGAR 10-K MCP",
    "description": "Execute 73 deterministic CPU accounting, FASB GAAP (ASC 842 lease, ASC 606, CECL), IRC corporate tax (Sec 382, 409A valuation, 990 UBIT), QoE EBITDA, NAICS/SIC, DCAA & SEC EDGAR 10-K engines (292 laws) across 57 US jurisdictions via Standby MCP or Dataset UI.",
    "version": "2.8",
    "x-build-id": "02IygSZkGALvudIas"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/quantledger~quantledger-cpa-gaap-tax-sec-mcp/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-quantledger-quantledger-cpa-gaap-tax-sec-mcp",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/quantledger~quantledger-cpa-gaap-tax-sec-mcp/runs": {
      "post": {
        "operationId": "runs-sync-quantledger-quantledger-cpa-gaap-tax-sec-mcp",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/quantledger~quantledger-cpa-gaap-tax-sec-mcp/run-sync": {
      "post": {
        "operationId": "run-sync-quantledger-quantledger-cpa-gaap-tax-sec-mcp",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "operation"
        ],
        "properties": {
          "operation": {
            "title": "Analytical Operation",
            "enum": [
              "execute_math_engine",
              "sec_10k_covenant_dossier",
              "statutory_rates_57_jurisdictions",
              "industry_crosswalk",
              "search_73_catalog"
            ],
            "type": "string",
            "description": "Choose which deterministic calculation, SEC 10-K audit, or free statutory/taxonomy lookup to run.",
            "default": "execute_math_engine"
          },
          "engine_code": {
            "title": "Calculation Engine (BI-01 to BI-73)",
            "enum": [
              "BI-01",
              "BI-02",
              "BI-03",
              "BI-04",
              "BI-05",
              "BI-06",
              "BI-07",
              "BI-08",
              "BI-09",
              "BI-10",
              "BI-11",
              "BI-12",
              "BI-13",
              "BI-14",
              "BI-15",
              "BI-16",
              "BI-17",
              "BI-18",
              "BI-19",
              "BI-20",
              "BI-21",
              "BI-22",
              "BI-23",
              "BI-24",
              "BI-25",
              "BI-26",
              "BI-27",
              "BI-28",
              "BI-29",
              "BI-30",
              "BI-31",
              "BI-32",
              "BI-33",
              "BI-34",
              "BI-35",
              "BI-36",
              "BI-37",
              "BI-38",
              "BI-39",
              "BI-40",
              "BI-41",
              "BI-42",
              "BI-43",
              "BI-44",
              "BI-45",
              "BI-46",
              "BI-47",
              "BI-48",
              "BI-49",
              "BI-50",
              "BI-51",
              "BI-52",
              "BI-53",
              "BI-54",
              "BI-55",
              "BI-56",
              "BI-57",
              "BI-58",
              "BI-59",
              "BI-60",
              "BI-61",
              "BI-62",
              "BI-63",
              "BI-64",
              "BI-65",
              "BI-66",
              "BI-67",
              "BI-68",
              "BI-69",
              "BI-70",
              "BI-71",
              "BI-72",
              "BI-73"
            ],
            "type": "string",
            "description": "Select the accounting, GAAP, IRC tax, valuation, DCAA, CMS, or credit engine to execute.",
            "default": "BI-07"
          },
          "jurisdiction": {
            "title": "US Tax & Regulatory Jurisdiction (57 Codes)",
            "enum": [
              "AK",
              "AL",
              "AR",
              "AS",
              "AZ",
              "CA",
              "CO",
              "CT",
              "DC",
              "DE",
              "FL",
              "GA",
              "GU",
              "HI",
              "IA",
              "ID",
              "IL",
              "IN",
              "KS",
              "KY",
              "LA",
              "MA",
              "MD",
              "ME",
              "MI",
              "MN",
              "MO",
              "MP",
              "MS",
              "MT",
              "NC",
              "ND",
              "NE",
              "NH",
              "NJ",
              "NM",
              "NV",
              "NY",
              "OH",
              "OK",
              "OR",
              "PA",
              "PR",
              "RI",
              "SC",
              "SD",
              "TN",
              "TX",
              "US",
              "UT",
              "VA",
              "VI",
              "VT",
              "WA",
              "WI",
              "WV",
              "WY"
            ],
            "type": "string",
            "description": "Select any of the 50 US States, Washington, D.C., 5 US Territories (PR, GU, VI, AS, MP), or US Federal baseline.",
            "default": "DC"
          },
          "naics_or_sic": {
            "title": "6-Digit NAICS, 4-Digit SIC, 8-Digit GICS, or Industry Keyword",
            "type": "string",
            "description": "Industry code for benchmark calibration or universal crosswalk lookup (e.g. 541211, 7372, 45103010).",
            "default": "541211"
          },
          "structured_inputs": {
            "title": "Structured Numeric Inputs (JSON — Leave {} for Statutory Baseline)",
            "type": "object",
            "description": "Supply trial-balance figures, lease cash flows, cost pools, cap-table terms, or pass {} to compute a statutory baseline.",
            "default": {}
          },
          "unstructured_context": {
            "title": "Optional Unstructured Contract, Lease, or Filing Excerpt",
            "type": "string",
            "description": "Optional raw clause text extracted with character-for-character quote verification prior to CPU calculation.",
            "default": ""
          },
          "ticker_or_cik": {
            "title": "Public Company Stock Ticker or 10-Digit SEC CIK (For SEC 10-K Audit)",
            "type": "string",
            "description": "Used when Operation = 'sec_10k_covenant_dossier' (e.g. CAT, DE, AAPL, MSFT).",
            "default": "CAT"
          },
          "analysis_focus": {
            "title": "SEC 10-K Analytical Lens",
            "enum": [
              "auto",
              "credit_covenants",
              "qoe_ebitda",
              "tariff_1401a"
            ],
            "type": "string",
            "description": "Analytical focus when running a public company SEC Form 10-K audit.",
            "default": "auto"
          },
          "search_query": {
            "title": "Optional Catalog Keyword Filter (For Operation #5)",
            "type": "string",
            "description": "Keyword filter when searching catalog blueprints (e.g. ASC 842, 382, UBIT, DCAA, CECL).",
            "default": "ASC 842"
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}