{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "name": "com.apikeg/office-template",
  "title": "Office OOXML Template Merge & Markdown Extractor API",
  "description": "Brand-safe .docx/.pptx template merging (fixing Word split XML runs & table loops) and 85%+ token-saving .docx/.pptx/.xlsx Markdown extraction. Typing {{customer_name}} in Word or PowerPoint shatters placeholders across multiple <w:r>/<a:r> runs with <w:proofErr/> tags, breaking naive regex scripts and corrupting PKZIP CRC32 headers. This API heals split runs, clones styled table rows, and extracts clean Markdown in milliseconds.",
  "version": "1.0.0",
  "transports": [
    {
      "type": "streamable-http",
      "url": "https://office-template.apikeg.com/mcp"
    }
  ],
  "capabilities": {
    "tools": true,
    "resources": true,
    "prompts": true
  },
  "authentication": {
    "required": false,
    "schemes": [
      "x402",
      "bearer",
      "none"
    ],
    "notes": "Zero-signup x402 is primary: initialize, tools/list, resources/*, and prompts/* are free, and paid tools settle inline via HTTP 402 (x402 v2 USDC). Alternatively, pass Authorization: Bearer ak_live_... with an active $5/$20/$50 monthly subscription from https://apikeg.com/account."
  },
  "payment": {
    "protocol": "x402",
    "version": 2,
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "manifestUrl": "https://office-template.apikeg.com/.well-known/x402.json",
    "freeDiscovery": true
  },
  "documentation": {
    "landingPage": "https://office-template.apikeg.com/",
    "llmsTxt": "https://office-template.apikeg.com/llms.txt",
    "llmsFullTxt": "https://office-template.apikeg.com/llms-full.txt",
    "openApi": "https://office-template.apikeg.com/openapi.json",
    "apiCatalog": "https://office-template.apikeg.com/.well-known/api-catalog"
  },
  "tools": [
    {
      "name": "merge_office_template",
      "title": "Merge .docx or .pptx Office Template",
      "pricing": {
        "scheme": "exact",
        "priceUsd": "0.004",
        "unitDescription": "per Office template merge (.docx or .pptx)"
      },
      "restEndpoint": "https://office-template.apikeg.com/v1/merge-office-template",
      "docUrl": "https://office-template.apikeg.com/tools/merge-office-template"
    },
    {
      "name": "extract_office_markdown",
      "title": "Extract Token-Minimal Markdown from .docx, .pptx, or .xlsx",
      "pricing": {
        "scheme": "exact",
        "priceUsd": "0.002",
        "unitDescription": "per Office document extraction (.docx, .pptx, or .xlsx)"
      },
      "restEndpoint": "https://office-template.apikeg.com/v1/extract-office-markdown",
      "docUrl": "https://office-template.apikeg.com/tools/extract-office-markdown"
    }
  ]
}