← In the News

Metabase rebuilt its MCP server around the mistakes models make

Rebuilding the Metabase MCP server: lessons for MCP tool design · Aleksandr Lesnenko, Metabase · Metabase blog, November 17, 2026

Machine-readable Download Markdown

The first version, in Metabase 60, turned nearly every endpoint of Metabase's Agent API into a tool, and the post says "models had a hard time with it." By Metabase 63, four different tools could run a query. The team rebuilt the server for Metabase 64. A read tool for each of 11 content kinds plus create and update tools for each of 10 writable kinds would have meant 31 tools; the new server covers that ground with 10 of its 24 tools. There is no delete tool. Write tools take an archive flag instead, so anything an agent archives can be restored.

The main change is that the model no longer retypes what the server already holds. Dashboards are changed through a list of operations that apply in one transaction, not by resending the layout, which runs to about 15,000 characters for the example dashboard; in a resent layout, a dropped filter mapping is saved as a removal and nothing reports an error. Documents take find-and-replace edits that must match exactly once, so comment threads on untouched blocks stay attached. A query is written once and stored on the server under a query_handle, which the model passes along to chart or save it. The server's instructions give the reason: "A wrong name errors loudly; a wrong id that exists resolves to the wrong column silently."

Usage guidance lives in six skill files, more than 5,000 words in total, served by a learn() tool. The post says MCP resources and prompts do not reliably reach the model, while every client lets the model call tools. It also notes that from March to October 2026, Claude Code cut every MCP tool description at 2,048 characters by default, which is why the glossary tool tells the model to call it rather than listing terms in its description. Errors the model can fix name the fix in a complete sentence. When an internal check fails, the error tells the model the bug is Metabase's and not to retry.

The tool list is not filtered by the permissions a connection was granted. Metabase found that models read a full list as the connection's permissions and claimed ones they did not have, so the server's instructions now say the list implies nothing about access, and a call that lacks a permission returns an HTTP 403 with an OAuth insufficient_scope challenge naming it. Values quoted from a user's instance are escaped, and in Metabase 65 larger results sit in fenced blocks with a fresh random boundary, marked as data. The post is direct that this does not guarantee a model will ignore instructions planted in the data; the connection's permissions are what limit the damage.

Why it matters: If you are exposing a product to agents, an endpoint-per-tool wrapper is the quick first version and, on Metabase's account, the one that fails. Design the tool surface around what a model gets wrong: return handles instead of asking it to retype IDs, accept operations or targeted edits instead of whole documents, and make every recoverable error say what to do next.