Connect the AI assistant your team already uses to LakeLogic over MCP (Model Context Protocol). It can read your contracts and their quality gaps, and propose a rule. LakeLogic tests the rule in a sandbox, and a person approves or rejects it with the test result in front of them.
The assistant never publishes a change or runs anything on your platform. Everything is limited to the organisation of the API key it connects with, and every call is recorded in your audit trail. Calls from your own assistant use no Zeus credits.
What the assistant can do
| Tool | What it does | Scope |
|---|---|---|
get_contract | The contract as published, never a draft | mcp:read |
assess_quality | Quality gaps with evidence: fields no rule checks, a key with no uniqueness check, foreign keys with no orphan check, untagged personal data | mcp:read |
blast_radius | What sits downstream of a dataset, and how confident that is | mcp:read |
propose_rule | Adds one quality rule as a draft of the contract, for a person to review. The live contract does not change. | mcp:propose |
test_change | Runs the draft in the sandbox on generated data with deliberately broken rows. Never your data. | mcp:test |
proposal_status | Whether a proposal is tested, approved or rejected | mcp:read |
get_evidence | The record: the change, who proposed it, the test, who decided and when | mcp:read |
Without a plan (read-only workspace): the read tools. Trial and paid plans: all of them.
Create an API key
- In LakeLogic, go to Settings → API Keys and create a key.
- Name it so you will recognise it on proposals and in the audit trail, for example
claude-code-alex. - Choose AI assistant (MCP) read. Add propose and test if the assistant should propose rules.
- Copy the key. It is shown once; keep it out of source control.
Connect your assistant
The endpoint is https://<your-lakelogic-host>/api/v1/mcp (MCP over HTTP), with the key in the
X-API-Key header.
Claude Code
claude mcp add --transport http lakelogic https://<your-lakelogic-host>/api/v1/mcp \
--header "X-API-Key: <your key>"
Cursor, Claude Desktop and other MCP clients
{
"mcpServers": {
"lakelogic": {
"type": "http",
"url": "https://<your-lakelogic-host>/api/v1/mcp",
"headers": { "X-API-Key": "<your key>" }
}
}
}
Close a quality gap
Ask your assistant, for example:
Assess the dataset
silver_trips, find the most important missing check, propose the rule and test it. Show me the results before I approve the change.
It reports how many generated rows were tested, passed and rejected, what the new rule caught, and example rejected rows. For a rule that checks the whole table, such as uniqueness, the test plants data that breaks it (duplicate keys) and reports whether the rule failed on it.
Approve or reject in LakeLogic
Open the contract. The Changes proposed by an AI assistant card shows the rule, who proposed it and the test result.
- Approving needs a test result. An untested proposal says so, next to the button.
- Only a signed-in person with an editor role or above can decide. An API key never can.
- Approving records your decision. It does not publish. The change is a draft, published the usual way: Create PR on the contract, with the same change checks and evidence as any other change.
Your assistant can then call get_evidence for an audit summary of the whole change.
Good to know
- One open draft per contract. An assistant cannot propose on a contract that has someone else's unpublished draft.
- A rule needs a name, so reviewers and run results can refer to it.
- Adding a rule bumps the contract's minor version (1.0.0 to 1.1.0), as a person editing it would.
- Every call appears under AI → Usage & Cost → Assistant (MCP) calls.
- No LakeLogic account? The open-source lakelogic-mcp runs on your machine against contract files: validate, lint, generate test data and run a contract locally.