{
 "schema_version": 1,
 "generated": "2026-10-24",
 "repo": "ashishsinha1602/schemagate",
 "name": "schemagate",
 "owner": "ashishsinha1602",
 "slug": "ashishsinha1602-schemagate",
 "github": "https://github.com/ashishsinha1602/schemagate",
 "what": "schemagate is a Python library and local studio page that filters a text-to-SQL schema by the caller's grants, so restricted tables never reach the LLM prompt.",
 "why": "105 stars, launched 48 days ago",
 "language": "Python",
 "requirements": [
  "Python and pip installed",
  "For your own database: a reachable Postgres, Oracle, MySQL or SQL Server URL, and the matching schemagate extra",
  "Optional: a model key only if you want generated answers or AI descriptions"
 ],
 "audience_note": "Data engineers and developers building text-to-SQL agents who need the model to see only the tables each user is allowed to read.",
 "risk": "none",
 "section": "earlier",
 "weekly_rank": null,
 "category": "Data and analytics",
 "url": "https://dedupedai.com/use-cases/ashishsinha1602-schemagate/",
 "use_case_count": 5,
 "use_cases": [
  {
   "id": "ashishsinha1602-schemagate--see-tables-hidden-from-a-caller",
   "title": "See which tables a caller is blocked from",
   "best": true,
   "url": "https://dedupedai.com/use-cases/ashishsinha1602-schemagate/see-tables-hidden-from-a-caller/",
   "json": "https://dedupedai.com/use-cases/u/ashishsinha1602-schemagate/see-tables-hidden-from-a-caller.json"
  },
  {
   "id": "ashishsinha1602-schemagate--select-tables-for-a-role-on-your-database",
   "title": "Select tables for one role on your own database",
   "best": false,
   "url": "https://dedupedai.com/use-cases/ashishsinha1602-schemagate/select-tables-for-a-role-on-your-database/",
   "json": "https://dedupedai.com/use-cases/u/ashishsinha1602-schemagate/select-tables-for-a-role-on-your-database.json"
  },
  {
   "id": "ashishsinha1602-schemagate--gate-schema-in-a-langchain-or-mcp-agent",
   "title": "Gate the schema inside a SQL agent's Python code",
   "best": false,
   "url": "https://dedupedai.com/use-cases/ashishsinha1602-schemagate/gate-schema-in-a-langchain-or-mcp-agent/",
   "json": "https://dedupedai.com/use-cases/u/ashishsinha1602-schemagate/gate-schema-in-a-langchain-or-mcp-agent.json"
  },
  {
   "id": "ashishsinha1602-schemagate--measure-prompt-savings-on-a-schema",
   "title": "Measure how many prompt tokens selection saves",
   "best": false,
   "url": "https://dedupedai.com/use-cases/ashishsinha1602-schemagate/measure-prompt-savings-on-a-schema/",
   "json": "https://dedupedai.com/use-cases/u/ashishsinha1602-schemagate/measure-prompt-savings-on-a-schema.json"
  },
  {
   "id": "ashishsinha1602-schemagate--tune-table-hints-in-the-studio-page",
   "title": "Tune table hints in the Studio page",
   "best": false,
   "url": "https://dedupedai.com/use-cases/ashishsinha1602-schemagate/tune-table-hints-in-the-studio-page/",
   "json": "https://dedupedai.com/use-cases/u/ashishsinha1602-schemagate/tune-table-hints-in-the-studio-page.json"
  }
 ],
 "disclaimer": "Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk."
}
