{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "schemaVersion": "1.0",
  "name": "Sheet SQL & Multi-Tab XLSX Engine API",
  "humanReadableId": "apikeg/sheet-sql",
  "agentVersion": "1.0.0",
  "description": "Run real SQLite JOINs and window functions over messy CSV/JSON tables and export styled multi-tab .xlsx workbooks in milliseconds. Eliminates spinning up Python/pandas/openpyxl sandboxes, avoids LLM arithmetic hallucinations on large CSVs, strips '$1,250.50' currency strings automatically, and emits genuine frozen-header Excel formulas.",
  "provider": {
    "name": "Monetization Gateway Edge APIs",
    "url": "https://apikeg.com"
  },
  "capabilities": {
    "mcpVersion": "2025-06-18",
    "x402Version": 2,
    "streaming": false,
    "supportedMessageParts": [
      "json",
      "text"
    ]
  },
  "supportedInterfaces": [
    {
      "url": "https://sheet-sql.apikeg.com/mcp",
      "protocolBinding": "MCP-STREAMABLE-HTTP",
      "protocolVersion": "2025-06-18"
    },
    {
      "url": "https://sheet-sql.apikeg.com/openapi.json",
      "protocolBinding": "OPENAPI-REST",
      "protocolVersion": "3.1.0"
    },
    {
      "url": "https://sheet-sql.apikeg.com/.well-known/api-catalog",
      "protocolBinding": "RFC9727-LINKSET",
      "protocolVersion": "1.0"
    }
  ],
  "defaultInputModes": [
    "application/json"
  ],
  "defaultOutputModes": [
    "application/json",
    "text/markdown",
    "text/html"
  ],
  "skills": [
    {
      "id": "query_tabular_data",
      "name": "Query CSV & JSON Tables with SQLite",
      "description": "Ingests 1–10 named RFC 4180 CSV/TSV or JSON row-array datasets into an ephemeral zero-retention SQLite sandbox, coerces currency columns (e.g. '$1,250.50' -> 1250.5), runs read-only SQL (JOIN, GROUP BY, CTEs, window functions), and returns typed rows, Markdown preview, inferred schemas, and optional .xlsx export. Why call instead of DIY: Replaces fragile regex CSV parsers, LLM mental math errors, and heavy container sandboxes; runs real SQLite in <25ms with guaranteed ephemeral wipe. Pricing: $0.002 base (up to $0.01 max $0.002 base + $0.001 per 1,000 total input rows (capped at $0.01), x402 variable settlement). Pass ?dry_run=true on REST to validate schema free.",
      "tags": [
        "data-analytics",
        "spreadsheets",
        "business-ops",
        "developer-tools"
      ],
      "pricing": {
        "scheme": "upto",
        "priceUsd": "0.002",
        "maxPriceUsd": "0.01",
        "unitDescription": "$0.002 base + $0.001 per 1,000 total input rows (capped at $0.01)"
      },
      "documentationUrl": "https://sheet-sql.apikeg.com/tools/query-tabular-data"
    },
    {
      "id": "build_xlsx_workbook",
      "name": "Build Styled Multi-Sheet XLSX Workbook",
      "description": "Compiles 1–20 structured JSON datasets into a genuine Office Open XML (.xlsx) workbook with bold shaded headers, frozen top rows, auto-sized columns, numeric formatting, formula-injection protection, and live Excel summary formulas (SUM, AVERAGE, MIN, MAX, COUNT). Why call instead of DIY: Generates compliant PKZIP/OpenXML spreadsheets at the edge in <15ms without Python, openpyxl, SheetJS bloat, or broken CSV exports. Pricing: $0.003 USD per multi-sheet .xlsx workbook generation (x402 instant micropayment). Pass ?dry_run=true on REST to validate schema free.",
      "tags": [
        "data-analytics",
        "spreadsheets",
        "business-ops",
        "developer-tools"
      ],
      "pricing": {
        "scheme": "exact",
        "priceUsd": "0.003",
        "unitDescription": "per multi-sheet .xlsx workbook generation"
      },
      "documentationUrl": "https://sheet-sql.apikeg.com/tools/build-xlsx-workbook"
    }
  ]
}