# Before you point AI at your data

> An AI assistant is only as good as the definitions it is allowed to use. Here is what an MCP server does, and the three things your data needs before one is worth building.

Insight on Variable Frog. Page: https://variablefrog.com/insights/before-you-point-ai-at-your-data

- Topic: AI and MCP
- Written by: Blend
- Reading time: 3 min
- Headline number: 97% answers matched

Chart: 240 questions from one analytics queue, one dot each.

240 questions sent to an analytics team: 146 were a filter on a metric that already existed, 58 needed data joined in a new way, and 36 needed an analyst's judgment.

- **61%** Of the questions people sent to analysts were a filter on a number that already existed.
- **1 in 5** Answers that were wrong when a model was pointed straight at the database, with nothing in between.
- **97%** Matched the known answer once the model could only use governed metrics, through typed tools.

Everyone wants to ask their data a question in plain language and get an answer. The technology for that exists now, and it works. What usually does not exist is data in a state where the answer can be trusted.

## What an MCP server is

The Model Context Protocol is an open standard for connecting an AI assistant to tools. An MCP server is a small service that says: here is what you may do, here is what each action needs, here is what it returns. The assistant decides which tool to call. The server decides what is allowed.

The split is deliberate. The model is good at understanding a question and bad at knowing your business. The server knows your business and never has to understand the question.

## Why not just give it the database

Because it will answer. Given raw tables, a model writes a plausible query, joins on the column that looks right and returns a number with complete confidence (A query that fails is harmless. The ones that run and return the wrong number are the problem.). In our tests about one answer in five was wrong in exactly that way: the right tables, the wrong definition.

Chart: Share of answers that matched the known answer: straight at the database against through governed tools.

Share of answers matching the known answer for three kinds of question. Straight at the database: 91, 78 and 52 percent. Through governed tools: 99, 98 and 93 percent.

The gap is widest where the question crosses sources, because that is where a join has to be guessed. Behind a server nothing is guessed: the assistant picks a metric, the dimensions, the filters and the dates, and the server writes the query.

## Three things your data needs first

Definitions, written down once. If cost per lead is calculated differently in two dashboards, an assistant will find both and pick one.

Permissions that live in the data, not in the dashboard. An assistant asks on behalf of a person, and must see only what that person may see.

Questions with known answers. Without them you cannot tell a better assistant from a more confident one.

## What it means for you

If those three are in place, an assistant on your data is a small project with a large effect. If they are not, they are the project, and they pay for themselves long before any AI arrives.

### What to do with this

- Write down the twenty questions your analysts answer most. That is your first evaluation set.
- Define each metric once, in the warehouse or a semantic layer, with an owner.
- Give the assistant tools, not tables: pick a metric, filter it, compare it.
- Log every question, query and answer, and read the log every week.

### How we measured

The questions are 240 requests from one analytics team's queue, each with an answer agreed by two analysts. An answer matched when it gave the same figure for the same metric, filters and dates.

- Questions: 240
- Match: Same figure, same definition
- Setups: Raw database, governed tools

Sources: [Model Context Protocol](https://modelcontextprotocol.io)

