AI Agents

Let AI agents work on Iceberg with scopes and guardrails

Intelligence keeps your tables fast, agents get safe, optimized SQL through QueryFlux, and agentic operations run over MCP, each within the limits you set.

Intelligence
Healthy lake
Agent access
Safe SQL
Agentic ops
MCP control
LakeOps LogoLakeOps

Last 30 days Optimization Activity

Total Operations
12,211
Last 90 days
Query Speed
12.4×
Avg. acceleration across engines
Cost Savings
$1,374,672
Saved in last 3 months
CPU & Storage
-76%
Last 90 days
Data Optimized
46.8 PB
Last 30 days

Key Metrics

Total Tables
786
Tables in all catalogs
Critical Tables
70
Require immediate attention
Warning Tables
105
Should be addressed or auto-piloted
Healthy Tables
566
Tables in optimal state
Total Data
112.4 PB
Total lake data size

Storage

-56% reclaimed
30d
112 TB75 TB38 TB
Storage used

CPU

-76% reduction
30d
100%66%33%
Compute hours

Recent Operations

Last 10 operations
OperationTableDurationImpactTimeStatus
Compact Data Files
customer_orders
orders
4s1.24 TB, 16 → 1 files57 minutes agoSUCCESS
Expire Snapshots
payment_transactions
payments
27s8.2 TB4 hours agoSUCCESS
Expire Snapshots
inventory_snapshots_20250702
warehouse
3s2.1 TB4 hours agoSUCCESS
Rewrite Manifests
raw_clickstream
analytics
1.9s3 → 1 manifests5 hours agoSUCCESS
Compact Data Files
product_catalog
products
6m 11.3s3,008 → 1,256 files6 hours agoSUCCESS

Lake Events

LiveLast 24 hours
Compact Data Files·customer_orders
ecommerce_prod·1.24 TB, 16 → 1 files
4s57 min agoOK
Expire Snapshots·payment_transactions
ecommerce_prod·12 snapshots expired
4.6s1h agoOK
Compact Data Files·raw_clickstream
marketing_events·970 → 87 files
9m 31.6s2h agoOK
Remove Orphan Files·user_sessions
marketing_events·847 MB reclaimed, 1,203 files
1m 12s3h agoOK
Rewrite Manifests·search_query_logs
ecommerce_prod·487 → 12 manifests
2.1s3h agoOK
Expire Snapshots·inventory_levels
warehouse_analytics·62 snapshots, 18.4 GB freed
27s4h agoOK
Compact Data Files·product_catalog
ecommerce_prod·3,008 → 1,256 files
6m 11.3s5h agoOK
Rewrite Manifests·shipping_events
warehouse_analytics·14 → 3 manifests
1.0s6h agoOK
Remove Orphan Files·balance_snapshots
warehouse_analytics·59,831 files, 74.8 GB
13m 6.9s7h agoOK
Compact Data Files·ad_impressions
marketing_events·42,633 → 69 files
2m 18s8h agoOK
No vendor lock-in
No code / infra changes
No data changes
REST API & MCP

Open and runs on your stack

AWS
Azure
Google Cloud
Snowflake
Databricks
Apache Flink
Apache Iceberg
Delta Lake
DuckDB
Dremio
Lakekeeper
ClickHouse
AWS
Azure
Google Cloud
Snowflake
Databricks
Apache Flink
Apache Iceberg
Delta Lake
DuckDB
Dremio
Lakekeeper
ClickHouse

How it works

From an API key to agents that run and query your lake

Give each agent a key with only the scopes it needs, connect any MCP client, and every action stays inside those limits.

  1. Create a scoped API key

    Pick read, write, or narrower scopes for each agent in Organization > API Keys.

  2. Add the MCP server

    Point Cursor, Claude Code, Claude Desktop, or any MCP client at your region's /mcp.

  3. Operate the lake

    Agents check health, plan and run maintenance, and manage policies within scope.

  4. Query with guardrails

    SQL goes through QueryFlux, where read-only, row-limit, and masking guards apply.

Adaptive Maintenance
Running
⚡Compaction Scope— what will be targeted this run

Monitoring started at seq #4,812. Everything written from that point on is in scope.

already compacted
38% hot zone — will compact
#4,812 baseline#7,104 watermark#8,506 now
📦Compaction
Last: 57 minutes agoNext: in 2h
62%
•42% of data files are below the 384 MB size threshold
•1.24 TB compactable — will merge into ~3 files at 512 MB target
•16 delete files amplify read cost — compaction will absorb them
⚡Snapshot Expiration
Last: 4 hours agoNext: in 20h
31%
•12 of 83 snapshots have passed the retention window
•Retention policy: 5.0 days
•Table creates 3.2 snapshots/hr — stale ones accumulate quickly
🧹Rewrite Position Deletes
Last: 7 hours agoNext: in 9h
24%
•16 position delete files across 4 partitions
•Delete ratio 6% — below the rewrite threshold
📝Rewrite Manifests
Last: 5 hours agoNext: in 1h
78%
•92 total manifests: 89 data + 3 delete
•Accumulating 2.1 manifests/hr — metadata overhead grows
•High manifest count degrades query planning and scan performance

01 · Fast tables

A lake that keeps itself fast for agents

Agent queries are short and frequent, so small files and bloated metadata hurt them most. Adaptive Maintenance compacts, expires snapshots, and rewrites manifests when each table needs it, and compaction sorts by the columns queries filter, join, and group on.
  • Query-aware sort: learns WHERE, JOIN, and GROUP BY columns from production traffic
  • Up to 12× faster queries after compaction and layout optimization
  • Agents can read each table's signals with get_maintenance_signals
SQL for agentsQueryFlux · /mcp
execute_querylist_schemasdescribe_tableexplain_queryget_query_statuscancel_query

execute_query

SELECT region, sum(amount)
FROM orders
WHERE order_date >= DATE '2026-11-01'
GROUP BY region

max_rows 1000 · routed to duckdb-local

Trino, DuckDB, StarRocks, Athena, ClickHouse, and warehouses through ADBC

02 · Query

Governed SQL, on the engine that fits each query

Agents query Iceberg tables through the MCP endpoint of QueryFlux, the open-source SQL proxy behind LakeOps routing. They list schemas, describe tables, explain and run queries, and each query runs on the engine your routing rules pick for it, so quick lookups and heavy scans don't share the same expensive cluster.
  • Trino, DuckDB, StarRocks, Athena, ClickHouse, and warehouses through ADBC
  • Repeat queries come from cache, and each group has a concurrency cap
  • No per-engine credentials for the agent to hold
Guardrail chainagents group
read_only

Blocks writes and DDL

allow
row_limit

max_rows 5,000

allow
require_predicate

No full scans on orders

deny
opa_access

Masks email, filters region

rewrite
HumanApproval

Pauses writes for review

off
agent_id: cursor-analyst · conversation_id: 7f3a… · denied before any engine ran

03 · Guardrails

Guardrails run before a query reaches an engine

Guards run in order and stop at the first deny. read_only blocks writes and DDL, row_limit caps results, require_predicate rejects full scans on the tables you name, and OPA or Cerbos policies rewrite queries with row filters and column masks. Human approval pauses high-stakes SQL.
  • Global guards plus extra ones per routing group, such as an agents group
  • Python and HTTP webhook guards for your own rules, such as an approval service
  • Every verdict is recorded with the agent and conversation that sent the query
LakeOps MCP server/mcp

Discover

list_catalogssearch_tablesget_schemaget_table_metadata

Diagnose

get_lake_healthget_table_profileget_table_insightsget_hot_partitions

Decide

analyze_critical_triageanalyze_table_maintenanceanalyze_policy_gaps

Act

query_compactionexecute_optimizationcreate_policyget_table_events
Streamable HTTP · Authorization: Bearer <org API key>

04 · LakeOps MCP server

31 tools to inspect and run your lake

Each LakeOps region hosts an MCP server at /mcp. Agents discover catalogs and tables, read health, insights, and maintenance signals, plan and run compaction, and manage policies, through the same backend as the console and REST API.
  • Works with Cursor, Claude Code, Claude Desktop, and any MCP client
  • Built-in prompts for triage, maintenance decisions, and policy gaps
  • Hosted over Streamable HTTP; nothing to install
API keysOrganization
triage-agent
read

Health, insights, signals, plans

maintenance-agent
readtables:write

Also runs compaction and expiry

policy-agent
readpolicies:write

Also creates and edits policies

execute_optimization → scope 'tables:write' required; nothing runs

05 · Scoped keys

Each agent gets only the permissions it needs

Agents authenticate with an organization API key whose scopes you pick when you create it. Every tool checks its own scope when it's called; without it, the call fails and nothing runs. The organization always comes from the key, so an agent can't reach another tenant's data.
  • read inspects everything and changes nothing
  • tables:write for maintenance, policies:write for policies
  • Deleting a table needs its own scope
Agent sessionread
Which tables should we fix first? Don't run anything.

→ analyze_critical_triage

3 critical, 12 warning tables

→ get_table_profile

orders: 42% small files, 214 manifests

Start with orders: compaction, then manifest rewrite. events is fine; skip it.

06 · Triage

Ask what needs fixing, get a ranked answer

Analysis tools give agents the same view the console has: lake-wide health, the tables to fix first and why, and what one table needs, in what order. When the right answer is to do nothing, the agent can say so.
  • analyze_lake_health and analyze_critical_triage for the whole lake
  • get_table_profile returns stats, insights, and signals in one call
  • analyze_table_maintenance decides which operations a table needs
Agent sessiontables:write
Compact orders, then tell me how it went.

→ query_compaction

18 groups · 970 files · 1.24 TB

→ execute_optimization

COMPACT_DATA_FILES submitted

→ get_table_events

SUCCESS · 970 → 87 files

Done. orders went from 970 files to 87.

07 · Act

Plan first, run when the key allows it

query_compaction plans a compaction without rewriting a file: groups, files, bytes, and parallelism. With tables:write, execute_optimization runs it, and get_table_events reports the result. Every run lands in Events, just like a run started from the console.
  • Compaction, snapshot expiry, orphan cleanup, and manifest rewrites
  • Runs return as soon as they're submitted; agents poll for status
  • Same engine and safeguards as console runs

Policies

Manage maintenance, configuration, and lifecycle policies for your data lakehouse

OnPolicyTypeNext RunLast RunUpdatedActions
orders_critical
Compact FilesApr 25, 2026, 8:12 AMApr 25, 2026, 03:05 AMFeb 01, 2025, 3:46 PM•••
payments_compact
Compact FilesFeb 15, 2026, 12:06 AMFeb 1, 2025, 02:18 PMFeb 5, 2025, 4:03 PM•••
Remove orphan files (e-ip...)
For all tables in all catalogs every 7 days
Orphan FilesApr 25, 2026, 8:12 AMApr 25, 2026, 04:07 PMJun 23, 2025, 04:01 PM•••
clickstream_cdc_events_p
Expire SnapshotsApr 25, 2026, 12:03 AMApr 25, 2026, 03:05 AMJan 28, 2025, 03:25 PM•••
sessions_cdc_events_p
Expire SnapshotsApr 25, 2026, 12:03 AMApr 26, 2026, 03:05 AMJun 26, 2025, 11:11 PM•••
global_expire_snapshots
Runs snapshot expiration on all tables once a day
Expire SnapshotsApr 26, 2026, 1:18 PMApr 07, 2026, 01:08 PMMar 14, 2026, 8:42 AM•••
manifest_rewrite_weekly
Rewrite manifests for all critical tables weekly
Rewrite ManifestsApr 28, 2026, 2:00 AMApr 21, 2026, 02:00 AMMar 10, 2026, 9:15 AM•••
staging_config
Configuration——Dec 31, 2025, 02:45 PM•••

08 · Policies

Agents find gaps in policy coverage

analyze_policy_gaps finds tables with missing or misconfigured policies and proposes the config. With policies:write, the agent can create, update, enable, disable, or run a policy, and you see the result on the Policies screen.
  • list_policies shows what already covers a table
  • create_policy and update_policy for maintenance and configuration policies
  • enable_policy and disable_policy to pause without deleting

Connect in minutes, with no lock-in

1

Connect catalogs & engines

LakeOps reads your Iceberg metadata. Data stays in your storage.

Apache Iceberg
AWS
Snowflake
DuckDB
2

Get visibility & insights

Every table's health and what it needs, from the first scan.

Health for every table
Optimization opportunities
Cost & performance insights
3

Choose your mode

Autopilot, on-demand runs, or your own policies.

Autopilot
Manual
Policies
4

Lakehouse optimized

Queries 12× faster
Cost down 76%
Engines optimized
Agents governed
Tables healthy
Fully governed
Sign upSet up in 10 minutes · Works with your existing stack

The challenge

Agents need more than a database password

Handing an agent a warehouse key gives it too much power, too little context, and no way to keep the tables it reads healthy.

Shared credentials, no limits

Agents often get a service account or warehouse key. Whatever that key can do, the agent can do, and every action looks like the same user.

Read-only isn't enough

A read-only agent can still scan a petabyte, pull millions of rows, or read columns it should never see.

Slow tables, slow agents

Small files, piled-up deletes, and bloated manifests turn a simple agent lookup into a long scan.

Agents can't run the lake

Most data MCP servers stop at queries. Checking table health or running maintenance still takes a person and a Spark job.

Compare

How teams give agents data access today

Raw credentials have no limits, and query-only MCP servers stop at SQL. LakeOps and QueryFlux give agents safe, optimized access and agentic operations over MCP, inside scopes and guardrails.

CapabilityRaw database credentialsQuery-only MCP serverLakeOps + QueryFlux
What agents can doWhatever the credential allowsRun SQL and browse schemasQuery, plus check table health, plan and run maintenance, and manage policies
PermissionsThe credential's grantsOften a read-only switchScoped API keys checked on every tool call, plus per-group SQL guardrails
SQL guardrailsNoneRead-only, sometimes a row capRead-only, row limits, required predicates, row filters and column masks, custom guards
Identity and auditOne shared userServer logsAgent and conversation on each query, replay in Studio, and every operation in Events
EnginesOne databaseOne engineRouted across Trino, DuckDB, StarRocks, Athena, and more
Table healthNot coveredNot coveredTables maintained so agent queries stay fast

Query-only MCP servers vary by vendor; details are from public documentation, November 2026.

Results

Cut costs and boost performance

Benchmarks from production-grade tables across multiple engines and clouds.

Query speed

12×faster

After compaction + layout optimization

CPU reduction

76%less compute

Compute hours across all engines

Storage saved

56%reclaimed

Orphans, snapshots & bloat removed

Table health

100%healthy

Autonomous maintenance keeps every table optimized

TPC-DS benchmark suiteProduction Iceberg tablesMulti-cloud, multi-engine

See it in action

Watch the LakeOps control plane in action

Healthy Iceberg tables for people and agents alike.

Watch demoYouTube ↗

FAQ

AI agents on Iceberg, answered

What can AI agents do with LakeOps?

Three things, the three parts of an agentic lakehouse. Intelligence runs the lakehouse, so the tables agents read stay fast. Agents get safe, optimized access to the data: SQL through QueryFlux, behind guardrails, routed and cached. And agentic operations run over the LakeOps MCP server: agents check health, read insights and maintenance signals, plan and run compaction, expire snapshots, and manage policies, within the scopes of their API key.

Which MCP clients work with LakeOps?

Cursor, Claude Code, Claude Desktop, and any client that supports MCP over Streamable HTTP. Each LakeOps region has a hosted server at its API host plus /mcp; you add it to the client with an organization API key. There's nothing to install locally.

How do I limit what an agent can do?

With scopes on its API key. A key with read can inspect everything but change nothing; tables:write adds execute_optimization; policies:write adds policy changes; table deletion needs its own scope. Every tool checks its scope when it's called, and a call without the scope runs nothing.

Can an agent run SQL on my Iceberg tables?

Yes, through QueryFlux's MCP endpoint. Agents use execute_query, list_schemas, describe_table, and explain_query, and each query is routed to an engine such as Trino or DuckDB. Results default to 1,000 rows.

What stops an agent from running a dangerous query?

Guardrails run before a query reaches any engine: read_only blocks writes and DDL, row_limit caps results, require_predicate rejects full scans on tables you name, and OPA or Cerbos policies add row filters and column masks. Python script and HTTP webhook guards cover anything else, such as calling your own approval service.

Can I see what each agent did?

Yes. QueryFlux records every query with its agent and conversation, plus each guardrail decision, and QueryFlux Studio can replay a whole agent session. On the LakeOps side, every maintenance operation an agent starts is recorded in Events.

Can an agent reach another organization's data?

No. The organization comes from the API key, never from tool arguments, so an agent only ever sees the organization its key belongs to.

Connect an agent. Keep it inside the lines.

A scoped key, the MCP server, and guarded SQL for your Iceberg tables.