cd /news/artificial-intelligence/from-sql-generation-to-tool-selectio… · home topics artificial-intelligence article
[ARTICLE · art-109777] src=machinebrief.com ↗ pub= topic=artificial-intelligence verified=true sentiment=· neutral

From SQL Generation to Tool Selection: A Domain-Oriented Pattern for MCP Servers

A new arXiv paper (2608.22063v1) proposes the Domain-Oriented Tooling Pattern for MCP servers, where LLM agents select from domain-aligned tools instead of generating SQL at query time. In a benchmark over the Sakila database, the verticalized domain pack achieved a pooled mean score of 0.939 versus 0.666 for raw SQL and 0.605 for a generic pack, with the smallest model improving from 0.583 to 0.929 and cutting cost per correct answer by an order of magnitude. The reference implementation, MCP Blueprint, is open-source and defines domain tools declaratively as YAML metadata plus parameterized SQL files.

read1 min views1 publishedAug 25, 2026

arXiv:2608.22063v1 Announce Type: new Abstract: Agents built on Large Language Models (LLMs) increasingly reach enterprise data through the Model Context Protocol (MCP), and many MCP database servers maximize flexibility by exposing a single generic SQL execution tool. This paper proposes the Domain-Oriented Tooling Pattern: instead of generating SQL at query time, the model selects from a small set of domain-aligned tools whose parameterized queries encapsulate schema navigation, joins and business rules on the server side. We formalize the pattern around three architectural invariants and introduce Model Demotion, the observation that replacing SQL synthesis with intent classification lowers the model tier required to serve routine requests. As a reference implementation we present MCP Blueprint, an open-source framework in which domain tools are defined declaratively as YAML metadata plus external parameterized SQL files. We evaluate the pattern with a public reproducibility benchmark comparing three MCP server designs - raw SQL execution, a thin generic tool pack, and a verticalized domain pack - on four local models (3B-8B) across seventeen customer-facing tasks over the Sakila database (609 completed cells; temperature 0; three repetitions per cell). The verticalized pack reaches a pooled mean score of 0.939 versus 0.666 for raw SQL and 0.605 for the generic pack; the smallest model improves from 0.583 to 0.929, matching or exceeding every larger configuration while cutting cost per correct answer by an order of magnitude. All harness code, prompts, gold answers, frozen packs and per-cell results are publicly available.

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @arxiv 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/from-sql-generation-…] indexed:0 read:1min 2026-08-25 ·