Skip to main content
Glama
mcp-server-milan-datawarehouse

mcp-server-milan-datawarehouse

run_query

Executes read-only SELECT or WITH SQL queries and returns token-efficient TSV results with a header row and data rows, optionally capped by max_rows.

Instructions

Run one read-only SELECT/WITH query. Returns TSV: header then rows.

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": {
      "sql": "<sql>"
    },
    "name": "run_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqlYes
max_rowsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden: it does disclose read-only scope and the TSV output shape, which is real behavioral value. It omits whether results are truncated at max_rows, how to resume (fetch_more exists as a sibling), what happens on non-SELECT input, and any timeout or cost characteristics.

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

Conciseness5/5

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

Two short sentences with zero filler, and the operation plus its constraint is front-loaded ahead of the return-format note. Nothing needs trimming.

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?

An output schema exists, so the description need not document return values, and it still briefly flags TSV-with-header. For a two-parameter read tool the coverage is nearly sufficient; the remaining gap is pagination/truncation behavior relative to fetch_more and max_rows.

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 0%, so the description must compensate. It adds genuine meaning for the required 'sql' parameter by restricting it to a single SELECT/WITH statement, but 'max_rows' is never mentioned even though it interacts with truncation and the fetch_more sibling.

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

Purpose4/5

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

States a specific verb and resource ('Run one read-only SELECT/WITH query') plus the return format ('TSV: header then rows'), which is concrete enough to separate it from describe_table and search_schema. It stops short of explicitly naming those siblings, so differentiation is inferred from the read-only query framing rather than stated.

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

Usage Guidelines3/5

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

'one ... query' implies single-statement usage, and 'read-only SELECT/WITH' implies writes are rejected, giving some implicit when-to-use context. There is no explicit guidance on when to prefer describe_table/search_schema first, and no mention of fetch_more for continuing past the row cap, which is the main routing decision an agent faces here.

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

Deploy Server

Other Tools