{
  "@context": "https://schema.org",
  "@type": "Product",
  "@id": "https://www.insightits.com/products/prismsql.html",
  "slug": "prismsql",
  "canonicalName": "PrismSQL",
  "name": "PrismSQL — Schema-bound NL-to-SQL compiler",
  "canonicalUrl": "https://www.insightits.com/products/prismsql.html",
  "knowledgeUrl": "https://www.insightits.com/catalog/prismsql.json",
  "markdownUrl": "https://www.insightits.com/catalog/prismsql.md",
  "family": "research",
  "infraFamily": null,
  "recordType": "product",
  "status": "published",
  "parentProduct": null,
  "whatItIs": "Schema-bound NL-to-SQL compiler. You upload your schema contract; the authenticated API returns parameterized SQL for those tables. The compiler owns last/next N days, over/under/between on a declared numeric column (amount, or qty when named), and prompt ORDER BY. Stripe Checkout on the dashboard writes the subscriber plan so compile quota changes after a successful payment. The model never writes SQL. We do not query InsightITS CRM and we do not connect to your warehouse.",
  "problem": "Teams want agents to generate SQL against their own database without leaking a live DSN to a vendor or allowing unconstrained generation.",
  "isNot": [
    "A query engine over InsightITS notes, tickets, or payments",
    "A hosted connection to the customer warehouse on the public API",
    "Chat with any database",
    "An LLM that writes SQL or ON clauses"
  ],
  "alternatives": [
    {
      "name": "Text-to-SQL that executes inside the vendor cloud",
      "relationship": "PrismSQL hosted API returns compiled SQL from your stored contract. You run it. We do not return your rows from our Postgres."
    },
    {
      "name": "ChatGPT / Copilot SQL",
      "relationship": "Those tools emit SQL text from a prompt. PrismSQL forces a closed Query IR; the compiler is the only component that writes the statement."
    },
    {
      "name": "RAG NL2SQL libraries that run against a live DSN",
      "relationship": "Those products retrieve schema and execute. PrismSQL stores your uploaded contract on your InsightITS login and returns sql_template + params only."
    },
    {
      "name": "MCP database servers",
      "relationship": "Those tools connect the model to the warehouse. PrismSQL is a compile boundary: no warehouse credential, JWT isolation inject, you run the SQL."
    }
  ],
  "features": [
    {
      "name": "Your schema, stored on your account",
      "description": "Dashboard PrismSQL tab: upload tables, isolation, join_paths, and optional indexes/enums/timezone. Validate shows required vs recommended fields. We save the contract for your login and never invent omitted columns."
    },
    {
      "name": "The model cannot invent SQL",
      "description": "Closed Query IR (no SQL, no ON). Compiler owns ranges (last 30 days, over 500, between) and prompt ORDER BY. Isolation is injected from the JWT. Ten dialect printers, gated by plan."
    },
    {
      "name": "Clear pricing in the same tab",
      "description": "Sandbox free (PostgreSQL). Developer $49/mo. Pro $399/mo (six dialects). Enterprise from $2,000/mo (all ten dialects, invoiced)."
    }
  ],
  "architecture": "Dashboard upload → Validate checklist (required vs recommended) → save per user in InsightITS Postgres. POST /api/prismsql/v1/query/execute with JWT: PrismGuard → VectorPrism (name-link then declared paths) → Query IR → compiler injects ranges and prompt ORDER BY → PrismManifest PEP → dialect printer → static Shield. Hosted API returns sql_template + params. ChorusGraph and PrismCortex are not invoked on this path; the schema pin is postgres.prismsql_schemas.",
  "useCases": [
    "MCP / local agent runtimes that need a closed SQL compiler",
    "SaaS teams shipping AI query features with an allowlisted schema"
  ],
  "benchmarks": {
    "published": false,
    "summary": "No published vendor benchmark for this product. Do not invent metrics.",
    "disclosures": [
      "No published vendor benchmark for this product. Do not invent metrics."
    ],
    "urls": []
  },
  "github": null,
  "pypi": null,
  "documentation": [
    {
      "title": "Compile API",
      "url": "https://www.insightits.com/docs/prismsql-api.md"
    },
    {
      "title": "API docs on the product page",
      "url": "https://www.insightits.com/products/prismsql.html#api-docs"
    },
    {
      "title": "Schema contract example",
      "url": "https://www.insightits.com/docs/prismsql-schema.example.json"
    }
  ],
  "install": "Not a pip package. Log in → dashboard.html#prismsql → upload schema JSON → call POST /api/prismsql/v1/query/execute with a JWT.",
  "version": null,
  "relatedProducts": [
    "prismguard",
    "vectorprism",
    "prismmanifest",
    "prism-shield"
  ],
  "publisher": {
    "@type": "Organization",
    "name": "Insight IT Solutions",
    "legalName": "Insight IT Solutions LLC",
    "url": "https://www.insightits.com"
  }
}
