Skip to main content
Glama
ETK-MCP

ETK-MCP

by wilhellmina

sql_query

Read-only

Run read-only SQL queries against the BMW ETK parts catalog to retrieve data not covered by other tools.

Instructions

Run read-only SQL against the catalog for anything the other tools don't cover. Texts: JOIN w_ben_gk ON ben_textcode = _textcode AND ben_iso = 'en' AND ben_regiso = ''. Use describe_schema first; big tables: w_btzeilen_verbauung (59M rows, key mospid, btnr, pos), w_ben_gk (2.8M), w_komm (3.3M), w_btzeilen (3M), w_bildtaf_suche (2.4M).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "sql_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesRead-only SQLite SELECT/WITH query on the ETK tables
max_rowsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The read-only claim matches readOnlyHint=true and the catalog scope matches openWorldHint=false, and the description goes beyond annotations by disclosing cardinalities (59M rows on w_btzeilen_verbauung), key columns for the largest table, and a join convention. It does not explain what happens when results exceed max_rows or how errors surface, which for a raw SQL tool is the remaining operational gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded purpose sentence followed by dense, useful hints; nothing is padded. The 'Texts:' line is telegraphic enough that it reads as a fragment, but it carries genuine schema knowledge rather than noise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema and no annotation detail on returns, but the description compensates for the realistic failure modes of a raw-SQL tool: it names the big tables, their row counts, and their keys so the agent can write non-catastrophic queries. Missing only result-shape and row-cap semantics, which are minor for an escape-hatch tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 50%: query is documented as 'Read-only SQLite SELECT/WITH', but max_rows has no explanation in either place, and the description never clarifies truncation behavior despite the 200-row default being perf-unrelated to the huge tables it warns about. The join example ('JOIN w_ben_gk ON ben_textcode = <x>_textcode') does add real value for constructing the query value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource ('Run read-only SQL against the catalog') and immediately scopes it against the rest of the toolset ('for anything the other tools don't cover'), so an agent knows this is the fallback escape hatch rather than a first-choice query path.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit prerequisite ('Use describe_schema first') and a clear selection rule ('anything the other tools don't cover'), plus which tables to be careful with. It stops short of naming which sibling to prefer for particular question types, but the fallback framing is unambiguous.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.