For Databricks
ClariLayer imports your Databricks Metric Views as canonical definitions, then layers them with your own working context — so your agent recalls both in-flow and flags where your version has drifted from the governed one.
The reconcile moment
The SQL is usually fine. The context is what breaks.
Your agent’s working answer
$1.51M
local arr_monthly note · last edited 6 weeks ago
Databricks Metric View
$1.42M
committed_recurring_revenue · governed
How it works
Your agent reads the definitions from Unity Catalog with its own access and bootstraps them into ClariLayer as semantic_model canon — one entry per measure, canonical from the start. ClariLayer never holds a credential or touches your catalog directly.
Ask a data question inside Claude Code, Cursor, or Codex and your agent pulls your working context and the matching governed canon together, in one response. You never leave the editor.
A different grain, base table, or filter shows up in the recall response, named: filters_differ. It works even when your local definition has a different name — ClariLayer matches on what a metric computes (table, measure, aggregation), not its label.
Open the console: adopt the governed definition (your SQL is preserved), link it as a deliberate variant, or keep local. Then reconcile against your warehouse for an honest asserted or caveat receipt — never a verified badge.
Compare with canonical
arr_monthlyMetric View committed_recurring_revenuePrivacy & access
Your agent is the connector. It keeps its own Databricks access and sends only definitions and result metadata — never a credential, never a server-side query.
ClariLayer
stores definitions + context
Your AI agent
holds the credentials
Databricks
your warehouse
When you import, your agent passes the structured definition; when you reconcile, it runs the SQL and sends back the result shape. No warehouse credentials reach us, and no SQL runs on our servers. The full data-flow posture is on the security page.
Honest scope
ClariLayer has no Databricks connection of its own. It never reads Unity Catalog, queries Delta tables, or ingests query history. Your agent does all of that with its own access.
When you reconcile a metric, your agent executes the SQL and sends back the result shape. ClariLayer never initiates a query, schedules a scan, or holds a credential.
Context entries are asserted or caveat. A clean reconcile pass does not upgrade the status; a mismatch is flagged as a caveat. We flag drift; we do not overclaim.
Who it’s for
You work a Databricks workspace in Claude Code, Cursor, or Codex, with Metric Views in Unity Catalog. Single-player — no data team, no procurement, no shared account. Install the MCP server, run one bootstrap, and your agent is grounded on your canon.
Connect ClariLayer to Claude Code, Cursor, or Codex. Import your Metric Views, and your agent stops guessing — it recalls the governed definition and flags your drift in-flow.
We use privacy-friendly analytics
With your consent we use PostHog and Vercel Analytics to understand how ClariLayer is used so we can improve it. We never sell your data. Errors are always monitored (without analytics) so we can keep the app reliable. You can change your mind anytime.