Metraipolis › archive › dc_d3ad0a3e1571
From SQL Generation to Tool Selection: A Domain-Oriented Pattern for MCP Servers — arXiv:2608.22063
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2608.22063
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-18T07:41:14.105Z
- SHA-256 of the archived text
b48aeda0e9057c7e20c6777caa41b63092d20e083a6815c9167ce9f0a03b2a10- Stable URL of this page
https://metraipolis.com/documento/dc_d3ad0a3e1571
How to cite
From SQL Generation to Tool Selection: A Domain-Oriented Pattern for MCP Servers — arXiv:2608.22063 — arXiv (en), https://arxiv.org/abs/2608.22063 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_d3ad0a3e1571 (Metraipolis archive dc_d3ad0a3e1571, sha256 b48aeda0e9057c7e20c6777caa41b63092d20e083a6815c9167ce9f0a03b2a10)
BibTeX
@misc{dcd3ad0a3e1571,
title = {From SQL Generation to Tool Selection: A Domain-Oriented Pattern for MCP Servers — arXiv:2608.22063},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2608.22063},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_d3ad0a3e1571; sha256 b48aeda0e9057c7e20c6777caa41b63092d20e083a6815c9167ce9f0a03b2a10},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.22063. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
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. Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-08-25 in cs.AI). Categorie arXiv: Artificial Intelligence (cs.AI) ; Databases (cs.DB). Pagina del lavoro: https://arxiv.org/abs/2608.22063 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-18T07:37:52.697Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-08-25?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).