Genie, Genie Agents and Genie MCP
Ask questions of governed data in plain language, then do the curation and testing that make answers trustworthy.
A Genie Agent turns questions into queries over a curated set of Unity Catalog tables. Its quality depends on what you give it: clean data, descriptions, joins, example queries, verified logic and a benchmark you rerun after every change. The Genie MCP server lets other agents and clients ask it questions. Treat it as a product with an owner, not a switch you turn on.
What you will learn: the Genie family of names, how an agent forms answers, how to scope and curate one, how to benchmark it, how access works, how to call it through MCP and how to run it over time.
Prerequisites: Text-to-SQL Agents and Schema Linking and semantic layers.
The example runs in November 2026 with Python 3.13 and only the standard library. It checks an invented configuration and scores invented answers; it does not call Databricks. Limits and features come from Databricks documentation checked on November 28, 2026. They vary by cloud, region and release status. OneSmartClick is independent of Databricks.
The Genie names
Several things carry the Genie name, and mixing them up causes confusion.
| Name | What it refers to |
|---|---|
| Genie Agents | Curated agents over chosen data, formerly Genie Spaces |
| Genie One | A broader assistant for business users across data and AI work |
| Genie Code | AI help for people writing code and pipelines, formerly Databricks Assistant |
| Agent mode | A mode for deeper, multi-step analysis, formerly called Research Agent in this context |
This page is mainly about Genie Agents. The concepts documentation says that domain experts configure them with datasets, sample queries and text guidelines so that business teams can ask questions in natural language.
How an answer is formed
Documentation describes Genie selecting relevant table and column names and descriptions, along with example queries, functions, instructions and recent conversation history, to produce a query. When a conversation grows long, the oldest parts may be left out because of token limits. A user who relies on something said early in a long chat should restate it.
Requirements and limits
The setup documentation lists these points at the time of checking:
| Requirement or limit | Documented value |
|---|---|
| Data registration | Data must be registered in Unity Catalog |
| Data scope | Up to 30 tables or views per agent |
| Compute | A pro or serverless SQL warehouse; serverless recommended for performance |
| Instructions | 100 per agent; each example query, each function and the whole general text block count as one |
| Creating or editing | Required entitlements, warehouse permission, data privileges and agent permissions |
Do not read the maximum as a target. Thirty loosely related tables give the agent many ways to choose wrongly. A handful of well-described tables built for one subject usually behaves better and is far easier to test.
Choose a narrow scope
Write one sentence stating who the agent serves and which decisions it informs, such as "help regional sales managers review weekly orders and returns". Then list twenty questions those people actually ask. The list decides which tables belong, and it becomes your first benchmark. Anything the list does not need stays out. Separate subjects deserve separate agents with separate owners.
Prepare the data first
No instruction repairs confusing tables. Prefer curated views over raw sources: clear column names, one meaning per column, declared keys, consistent time zones and excluded test records. Add descriptions in Unity Catalog so that every tool benefits, not only this agent. Where measures such as revenue have a precise definition, publish it once. Databricks documents business semantics in Unity Catalog for governed metrics, and data quality work covers the upstream checks.
The knowledge store
An agent's knowledge store holds local descriptions, join relationships and reusable expressions. Documentation notes that these configurations apply only to that agent and do not change Unity Catalog metadata. That is convenient for terms specific to one audience, but it creates a second place where meaning lives. Decide what belongs where:
| Put in Unity Catalog or semantics | Put in the agent |
|---|---|
| Definitions the whole organization shares | Terms and abbreviations used by one team |
| Table and column meaning | Preferred defaults such as period or currency |
| Governed measures | Example questions for this audience |
| Keys and relationships others need | Join hints specific to this subject |
Instructions in the right order
Give structure the priority over prose. First fix the data and descriptions. Then declare joins and expressions. Then add example queries for important question patterns. Use free text only for rules that apply everywhere, which is also what the tuning guidance suggests. A long block of text that mixes rules, exceptions and history is hard to test, and contradictions in it are easy to miss.
Write each text rule so that it can be checked: "Revenue excludes canceled orders and is reported in US dollars" can be tested; "be careful with revenue" cannot.
Verified logic and trusted assets
Trusted assets are parameterized example queries and SQL functions whose logic an author has verified. Documentation says that when Genie uses one to answer, the answer comes from that verified logic, and responses can be marked as verified. Use them for the questions where a wrong number would matter most: official revenue, headcount, service levels. Give each an owner and a review date, because a verified query that no longer matches the business is verified and wrong.
Parameters deserve care. State what values are allowed, and make the function reject others. A parameter that accepts any region name, including a misspelled one, may return an empty result that looks like zero sales.
Benchmarks
Benchmarks are test questions used to measure response accuracy. The documentation states that Genie does not use benchmark questions or their SQL to improve its context, which keeps them useful as a test. Build them from real requests and include:
- Several phrasings of each important question.
- Boundary cases such as month ends, empty periods and new products.
- Ambiguous questions, where asking for clarification is the right behavior.
- Questions the data cannot answer.
- Questions that a particular user should not be able to answer.
If you copy a failing benchmark question into the examples, it stops testing generalization. Fix the underlying cause, such as a description or a join, and keep a held-out set that authors do not tune against. Safe SQL and evaluation explains result comparison on more than one data state.
Check the setup and score separately
The program counts instructions against the documented limit and compares result sets. It reports questions answered through verified logic apart from freshly generated SQL.
"""Check a data agent's setup against limits, then score a benchmark."""
LIMITS = {"tables": 30, "instructions": 100} # as documented in Nov 2026
AGENT = {
"tables": ["sales.orders", "sales.customers", "sales.returns"],
"example_queries": 12,
"functions": 3,
"has_text_block": True,
}
def check_setup(agent):
# Each example query, each function and the whole text block count as one.
used = (agent["example_queries"] + agent["functions"]
+ int(agent["has_text_block"]))
return {"tables": len(agent["tables"]), "instructions": used}
def normalize(rows):
"""Ignore row order and tiny float noise; keep duplicates."""
return sorted(tuple(round(v, 2) if isinstance(v, float) else v for v in r)
for r in rows)
# (question, reference rows, agent rows, used a verified query?)
BENCH = [
("revenue by region", [("N", 120.0), ("S", 80.0)],
[("S", 80.0), ("N", 120.0)], True),
("returns last month", [(14,)], [(14,)], True),
("active customers", [(310,)], [(342,)], False),
("average order value", [(52.5,)], [(52.499999,)], False),
("top product by margin", [("kettle",)], [("toaster",)], False),
("orders per day", [("mon", 9), ("tue", 11)], [("mon", 9)], False),
]
def score(bench):
groups = {True: [0, 0], False: [0, 0]}
wrong = []
for question, ref, got, verified in bench:
ok = normalize(ref) == normalize(got)
groups[verified][0] += ok
groups[verified][1] += 1
if not ok:
wrong.append(question)
return groups, wrong
for name, used in check_setup(AGENT).items():
print(f"{name}: {used} of {LIMITS[name]}")
groups, wrong = score(BENCH)
for verified, label in ((True, "verified query"), (False, "generated SQL")):
ok, n = groups[verified]
print(f"{label}: {ok}/{n} correct")
print("review:", "; ".join(wrong))
Output:
tables: 3 of 30
instructions: 16 of 100
verified query: 2/2 correct
generated SQL: 1/4 correct
review: active customers; top product by margin; orders per day
The combined score would be three of six, which hides the pattern. In this invented data the verified questions pass and generated ones mostly fail, so the work lies in definitions for active customers, margin and daily orders. Splitting scores by route, subject and difficulty shows where to act. The comparison ignores row order and rounds decimals; write such rules down before scoring, and keep order when the question asks for a ranking.
Permissions and identities
Two different things are shared when you share an agent: permission to use the agent and permission to see data. Users need both. The documentation also explains that the warehouse is used with credentials embedded from the author who configured it, so check what that means for compute access and cost attribution, and who becomes responsible if a different author changes the warehouse. Data access should follow Unity Catalog privileges, including row filters and column masks where you define them.
- Test with accounts that represent real users, not with the author's account.
- Check that example values, descriptions and instructions reveal nothing restricted.
- Review who can edit the agent; editors can change what answers mean.
- Confirm account settings that govern partner-hosted AI features, which affect availability.
The Genie MCP server
The Model Context Protocol lets an agent or desktop client discover and call tools. Databricks documents managed MCP servers that include Genie.
| Server | URL pattern | Scope |
|---|---|---|
| One Genie Agent | /api/2.0/mcp/genie/{genie_space_id} | genie |
| Genie One | /api/2.0/mcp/genie | genie |
Both paths are appended to your workspace host name. Some of these endpoints are in preview and may need to be enabled by a workspace administrator. The identifier still appears as a space ID, a leftover of the earlier name.
Three behaviors affect design. Documentation says the Genie Agent MCP server calls Genie as a tool and does not pass conversation history, so the calling agent must include the needed context in each question, or use a multi-agent integration that preserves it. Analytical queries can run for a while, so the client should handle waiting and results that arrive later. And one documentation page notes that the Genie Agent MCP endpoint relies on permissions on the underlying resources without additional gateway governance, so confirm which policies actually apply to your route.
Calling Genie from another agent
- Describe the tool so that the caller knows which subjects it covers and which it does not.
- Send the period, region and measure explicitly.
- Pass numbers through without letting the model retype them where possible.
- Show the user which agent answered and whether the logic was verified.
- Treat errors and empty results as different outcomes.
- Limit repeated calls, so that a confused caller cannot run up cost.
Use user authorization where answers must respect individual permissions. A calling agent that uses its own broad identity can turn a narrow personal view into a company-wide one. MCP security explains the risks, and Unity Catalog governance covers grants.
Documents and outside tools
Genie is strongest on structured data. Documentation describes ways to reach external documents and tools, such as attaching MCP connectors and using agent mode, with availability that depends on release status. Every added source widens what can go wrong: retrieved text can be outdated or contain instructions aimed at the model. Add sources one at a time, with tests, and read about prompt injection before connecting content that outsiders can write.
Governance record
Keep a short record for each agent, reviewed on a schedule:
| Item | Example |
|---|---|
| Owner and deputy | Named people in the business and data teams |
| Purpose and audience | Weekly sales review for regional managers |
| Data sources | Tables and views, with classification |
| Quality target | Thresholds for verified and generated answers |
| Known limits | No forecasts; data refreshed daily |
| Escalation | How users report a wrong answer |
Change and release
- Edit a copy or a development version where possible.
- Run the full benchmark and compare with the previous results.
- Read the queries behind any changed answer.
- Check access with representative accounts.
- Publish, announce what changed and keep a way back.
Bundle tooling lists Genie Agents among the resources it can define, which allows configuration to move through environments in a repeatable way. See deployment and delivery. Remember that schema changes upstream can break an agent without anyone editing it, so trigger the benchmark from data changes too.
Monitor use
Review real questions with permission and care for privacy. Look for repeated rephrasing, negative feedback, empty results, questions outside scope and queries that scan far more data than expected. Each pattern suggests a fix: a missing synonym, a missing table, a clearer scope message or an example query. Track warehouse and Genie usage costs; Databricks announced pay-as-you-go pricing for Genie in 2026 with a temporary free allowance period, so check the current release notes and pricing pages.
Troubleshooting wrong answers
| Symptom | Likely cause | First check |
|---|---|---|
| Wrong table chosen | Overlapping tables or weak descriptions | Remove or describe |
| Inflated totals | One-to-many join | Declare relationships and test |
| Wrong period | Ambiguous time words or zone | State a default and show it |
| Different answers to similar questions | Missing definition or verified query | Add governed logic |
| User sees nothing | Missing privilege or a row filter | Test that user's grants |
| Slow responses | Warehouse size, start time or heavy queries | Read query history |
Common mistakes
| Mistake | Consequence | Instead |
|---|---|---|
| Adding every table | Confused selection | Scope to a question list |
| Long free-text instructions | Contradictions and no tests | Structure first |
| Tuning on the benchmark | Scores rise, quality does not | Hold out questions |
| Testing as the author | Permission faults reach users | Test as real roles |
| Assuming MCP calls remember context | Answers about the wrong thing | Send complete questions |
| No owner | Definitions decay | Name one and review |
Checklist
- Purpose, audience and owner are written down.
- Only needed, curated and described tables are included.
- Important measures use governed definitions or verified logic.
- Benchmarks include ambiguous, unanswerable and forbidden cases.
- Access is tested with representative users.
- Callers over MCP send complete context and handle slow results.
- Cost, feedback and failures are reviewed regularly.
Frequently asked questions
Is a Genie Space different from a Genie Agent?
It is the earlier name for the same kind of object. Some identifiers, URLs and older material still say space.
Can Genie change my data?
Treat it as a question-answering tool and give users and warehouses only the privileges they need. Verify behavior for any function you add, since a function can do whatever its permissions allow.
How accurate is it?
Only your benchmark on your data can say. Accuracy depends on data design, curation and the kind of question, and it can change when any of those change.
Should I use Genie or write a text-to-SQL agent?
Try Genie when your data is in Unity Catalog and the need is question answering. Write your own when you need different control flow, other sources or behavior you cannot configure.
References
- Databricks: Genie Agents concepts
- Databricks: create and manage a Genie Agent
- Databricks: tune Genie quality
- Databricks: managed MCP servers
- Databricks: AI/BI release notes 2026
Where to go next
Unity Catalog Governance and Security
Control who sees what.
MLflow Tracing, Evaluation and Monitoring
Trace and evaluate agents that call Genie.
Multi-Agent Reference Designs and Hands-On Projects
Build a governed analytics agent step by step.