{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "schemaVersion": "1.0",
  "name": "PDF Forge & Layout Diagnostics Edge API",
  "humanReadableId": "apikeg/pdf-forge",
  "agentVersion": "1.0.0",
  "description": "Compile Markdown or HTML into polished multi-page PDF 1.7 documents with orphan-page & wide-table diagnostics in <20ms. Eliminates heavyweight headless Chromium containers, broken PDF byte-offset xref tables, clipped wide tables, and embarrassing 2-line trailing orphan pages before delivering client-facing PDFs.",
  "provider": {
    "name": "API Keg",
    "url": "https://apikeg.com"
  },
  "capabilities": {
    "mcpVersion": "2025-06-18",
    "x402Version": 2,
    "streaming": false,
    "supportedMessageParts": [
      "json",
      "text"
    ]
  },
  "supportedInterfaces": [
    {
      "url": "https://pdf-forge.apikeg.com/mcp",
      "protocolBinding": "MCP-STREAMABLE-HTTP",
      "protocolVersion": "2025-06-18"
    },
    {
      "url": "https://pdf-forge.apikeg.com/openapi.json",
      "protocolBinding": "OPENAPI-REST",
      "protocolVersion": "3.1.0"
    },
    {
      "url": "https://pdf-forge.apikeg.com/.well-known/api-catalog",
      "protocolBinding": "RFC9727-LINKSET",
      "protocolVersion": "1.0"
    }
  ],
  "defaultInputModes": [
    "application/json"
  ],
  "defaultOutputModes": [
    "application/json",
    "text/markdown",
    "text/html"
  ],
  "skills": [
    {
      "id": "render_document_pdf",
      "name": "Render Markdown or HTML Document to Themed PDF",
      "description": "Compiles Markdown (headings, bold/italic/code, lists, GFM tables, callouts, '---pagebreak---') or HTML into both print-ready themed HTML and a spec-compliant multi-page PDF 1.7 binary with running headers, 'Page X of Y' footers, repeated table headers across page breaks, optional watermark, and deterministic layoutDiagnostics. Why call instead of DIY: Avoids spinning up 400MB Puppeteer/Playwright containers or hand-rolling brittle PDF stream/xref math; returns both binary PDF and layout QA diagnostics in <20ms at $0.004. Pricing: $0.004 USD per rendered PDF document (x402 instant micropayment). Pass ?dry_run=true on REST to validate schema free.",
      "tags": [
        "document-generation",
        "reporting",
        "business-ops",
        "developer-tools"
      ],
      "pricing": {
        "scheme": "exact",
        "priceUsd": "0.004",
        "unitDescription": "per rendered PDF document"
      },
      "documentationUrl": "https://pdf-forge.apikeg.com/tools/render-document-pdf"
    },
    {
      "id": "inspect_pdf_document",
      "name": "Inspect Binary PDF Structure & Metadata",
      "description": "Parses a Base64-encoded PDF binary to verify %PDF header/EOF integrity and extract pdfVersion, exact pageCount, byteLength, encryption status, AcroForm presence, and Info dictionary metadata. Why call instead of DIY: Instant deterministic PDF preflight without installing native poppler/pdfinfo binaries; $0.001 per check. Pricing: $0.001 USD per PDF binary inspection (x402 instant micropayment). Pass ?dry_run=true on REST to validate schema free.",
      "tags": [
        "document-generation",
        "reporting",
        "business-ops",
        "developer-tools"
      ],
      "pricing": {
        "scheme": "exact",
        "priceUsd": "0.001",
        "unitDescription": "per PDF binary inspection"
      },
      "documentationUrl": "https://pdf-forge.apikeg.com/tools/inspect-pdf-document"
    }
  ]
}