The context layer that checks itself · MCP-delivered
Connect ClariLayer to Claude Code, Cursor, Codex, or claude.ai. It bootstraps real working context from five source kinds — SQL, dbt, notes, dictionaries, and semantic models — for your AI data agent to recall before it answers. Then your agent stops making the same data mistakes — wrong table, wrong join, refunds counted in revenue — session after session.
CLI connection example
Your context layer
Active customer
Definition · you → reconciled
Net revenue (excl. refunds)
Definition · from dbt
orders.region — null before 2023
Schema note · you → reconciled
fct_orders ↔ dim_customers join
Join path · you
Reconciled against your source — not blindly asserted. Mismatches surface as a caveat so you and your agent know what to trust.
In the personal MCP path, ClariLayer never holds warehouse or CRM credentials, runs SQL, or calls HubSpot. Your agent uses its own source access and supplies the supported evidence; ClariLayer reconciles it and flags caveats.
Bootstraps SQL · dbt · CLAUDE.md · dictionaries · semantic models


See it work inside the agent
One command to connect. Then your agent recalls the definition you saved, runs the query with its own warehouse access, and reconcile flags what to treat with care.
saved context · returned by recall
Reenactment of the real loop — the same recall → reconcile → caveat flow the MCP runs today. Your agent keeps its own warehouse access; ClariLayer never holds your warehouse credentials and never runs SQL server-side.
New chat, new context window — and your agent has forgotten which table is the real one, how the joins go, and which definition you actually use. You re-explain it. Again.
Hand-typing your definitions into a notes file has the same trust problem as the original numbers: nothing checked it against your warehouse. It drifts, and your agent trusts it anyway.
Wrong table, wrong join, refunds counted in revenue, an active customer defined three different ways — the same mistakes, session after session, because nothing remembers the correction you already made.
Reconciled, not asserted
Hand-typing your definitions into a notes file is a real, useful start — but nothing checked it against your warehouse. A ClariLayer entry is the same definition, reconciled against your real warehouse result: provenance and status are shown, and a declared-vs-actual mismatch surfaces as a caveat instead of a confident wrong answer.
Just text. Nothing reconciled it against your warehouse, so when the definition drifts the agent keeps trusting the stale line — confidently.
The declared definition counted logged-in users; reconciling against your warehouse showed the billing rule (mrr > 0) returns a different number. Flagged for you to resolve — not hidden behind a clean-looking total.
Reconciled against the result your agent computed locally. ClariLayer never holds your warehouse credentials and never runs SQL server-side — it checks declared against actual, and shows its work.
How it works
Four everyday verbs form the core loop. Supporting tools handle review, lifecycle, full-context fetches, and the completion receipt.
Start from five shipped sources: SQL, dbt models, CLAUDE.md or notes, a data dictionary, and a semantic model. SQL, dictionaries, and semantic models become structured context; dbt and notes come along too.
Mid-task, your agent pulls relevant context in-flow. Exact names lead, use-case scoping stays explicit, and the result says when useful context was scoped away instead of silently hiding it.
Every correction, definition, and schema note you make persists. Your agent retains it across sessions, so you stop re-explaining the same thing every chat.
Ground a saved definition against a warehouse result or bounded, row-free HubSpot evidence. A mismatch surfaces as a caveat; otherwise the entry remains asserted.
Before the agent says done
Managed instructions ask supported local agents to recall first, write confirmed durable changes, then call context_checkpoint. The durable, idempotent receipt persists either the agent's context_updated declaration or an explicit no_update_required declaration and validates ownership and eligibility of referenced ClariLayer objects. It does not independently prove an entry changed or certify the code, query, deployment, or external system. A pending proposal or failed update cannot complete the loop.
Without your saved context, the agent guesses from raw table names. With it, the agent recalls the definition you reconciled against your warehouse — and knows what to treat with care.
The first reconcile
The acute analyst moment: two sources disagree and the QBR is in an hour. ClariLayer reconciles a saved definition against your real warehouse result and flags the drift as a caveat — checked against source, never blindly asserted.
Your dashboard says
$1.42M
Net revenue for the quarter — the number on the board.
Your agent’s query returns
$1.51M
The ad-hoc query your agent just wrote, against the same warehouse.
A $90K gap, and no way to tell which one is right.
reconcile
Your agent runs the stored net_revenue SQL with its own access and reports the result shape back. ClariLayer compares the saved definition’s declared signals — its columns, grouping, and aggregates — against what came back.
They don’t line up: the live result is missing a column the saved definition expects, so reconcile records a caveat. That’s the signal to look closer — not a ruling on which dollar figure is right.
The caveat sends your agent digging
With its own warehouse access it traces the $90K to the cause: the ad-hoc query never joined the refunds table, so it reported gross, not net. You ship the refund-adjusted $1.42M.
remember
You correct it once so next quarter the agent starts from it instead of rediscovering it:
The caveat caught the $90K discrepancy an hour before the QBR. Your agent traced it to the missing refunds join, you shipped the right number, and the correction is remembered for good. Your agent runs the query with its own access; ClariLayer never holds your warehouse credentials and never runs SQL server-side.
Live now · HubSpot CRM reconcile
Save a row-free contract for a HubSpot property — expected stages, a canonical value, deprecated aliases, or an expected label. Your agent reads HubSpot with its own authorized access and sends ClariLayer only bounded property metadata and value distributions.
On this personal path, ClariLayer never receives CRM credentials or records, and it never calls HubSpot. A mismatch becomes a caveat; otherwise the contract remains asserted. Salesforce contracts can be stored and recalled, but Salesforce reconciliation is not enabled.
Synthetic deal-stage check
Saved contract
Row-free observation
A configured expected value with an exact zero in a complete distribution is absent from the observed records. That does not mean the option is missing from HubSpot configuration.
One analyst, your own data, your own agent. No governance rollout or procurement cycle — just your context, bootstrapped, reconciled, and remembered.
Bootstrap
Your agent doesn't start from zero — and it doesn't start from a hand-typed CLAUDE.md. Point ClariLayer at the work you already have.
What gets ingested
“Bootstrap my context from ./analytics/sql + my dbt models.” Real working context on the first session.
Reconcile
A saved definition is reconciled against a warehouse result or bounded, row-free HubSpot evidence collected by your agent.
What reconcile returns
Warehouse access and CRM access stay with your agent. ClariLayer compares only the supported evidence it sends.
Remember
Every correction, every reconcile, every new note persists. Your agent grounds on more of your context over time.
The retention loop
“Claude Code finally understands my project.” The context you build is the moat.
For teams · the Governed Context Edge
ClariLayer starts as your personal context layer. The Governed Context Edge — your reconciled definitions promoted into a governed team canon, with ownership, approval, and one right metric — is built and in private pilot. A few design-partner slots are open.
The definitions and corrections you build solo are exactly what later merges into shared, owned team context — the same engine, one level up.
When a team adopts it, governance arrives: who owns a definition, what's approved, and the one right answer everyone's agents use.
Start as your personal context layer with no procurement. When the team is ready, the Edge is already built — private pilots are onboarding now.
Connect your AI
Connect Claude Code, Cursor, or Codex with a context key, or add ClariLayer as a custom claude.ai Connector and approve over OAuth. Managed instructions keep supported local agents on the recall, confirmed-update, and completion-checkpoint loop.
Add ClariLayer as a custom Connector, paste only the MCP URL, then sign in and approve in your browser.
https://app.clarilayer.com/api/mcp/mcpClaude Code, Cursor, and Codex authenticate with the context key you mint in ClariLayer.
Run in your terminal
claude mcp add --transport http clarilayer https://app.clarilayer.com/api/mcp/mcp --header "Authorization: Bearer cl_YOUR_CONTEXT_KEY"Replace cl_YOUR_CONTEXT_KEY with your context key. The key is shown once at creation, so paste it straight into the command.
Built to be trusted with your data
The whole point is that your AI's context is grounded against reality, not just asserted. We measured what that is worth — and we label every claim with exactly how far it goes.
Measured, not manufactured
In our internal paired eval, the same agent answered 36 of 38 data questions correctly with ClariLayer connected — 26 of 38 without. The cheaper the model, the bigger the lift: the control went confidently wrong under session load.
Shipped, not slideware
Bootstrap, recall, remember, and reconcile are live in production, alongside review, lifecycle, full-entry fetch, and a durable completion receipt. Connect Claude Code, Cursor, or Codex with a context key, or claude.ai over OAuth.
A standard, not a shortcut
A compatible saved definition is checked against a warehouse result or bounded, row-free HubSpot evidence. A mismatch is flagged as a caveat; otherwise it stays asserted. The stronger “verified” mark is not a live status.
Your data, your access
On the personal MCP path, ClariLayer never runs SQL or calls HubSpot. Warehouse evidence can include optional preview rows; HubSpot evidence contains only bounded metadata and aggregate distributions, with CRM rows forbidden.
FAQ
What ClariLayer can see, what it doesn't touch, what's free, and what “reconciled” actually means.
Connect ClariLayer to Claude Code, Cursor, or Codex in one command. Free to start — no team, no procurement, just your context.
Connect your AIFor teams
The Governed Context Edge is in private pilot — a shared, governed canon for your whole team's agents. We onboard design partners personally.
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.