Skip to main content
Glama
kevinkda

clickhouse-mcp

by kevinkda

run_safe_sql

Run read-only SELECT queries with enforced limits and guardrails to safely analyze stock market data.

Instructions

Run a single read-only SELECT (DISABLED by default).

Off unless CLICKHOUSE_MCP_ALLOW_RAW_SQL=true. Even when enabled only single read-only SELECT statements are allowed (readonly=1, forced LIMIT, execution-time + result-row guardrails). Prefer the structured tools.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
queryYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations, the description fully discloses behavioral traits: read-only mode, forced LIMIT, execution-time and result-row guardrails, and requirement for CLICKHOUSE_MCP_ALLOW_RAW_SQL=true. It does not contradict any annotations as none exist. Minor gap: no mention of error handling or response format, but output schema exists.

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?

The description is concise with two short sections, front-loading the main purpose. However, it could be slightly better structured (e.g., bullet points for constraints). Still efficient and clear.

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

Completeness3/5

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

Given the tool's complexity (raw SQL execution), the absence of annotations, and the existence of an output schema, the description covers safety and constraints but lacks parameter details and usage examples. It is minimally adequate.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must explain parameters. It mentions 'forced LIMIT' but does not detail the 'limit' parameter or explain 'query' format/syntax. The description adds minimal value beyond the schema.

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?

The description clearly states the tool runs a single read-only SELECT query, which is a specific verb-resource combination. It distinguishes from sibling tools by emphasizing 'prefer the structured tools' and highlighting the raw SQL nature.

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

Usage Guidelines5/5

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

The description explicitly states when to use (when raw SQL is needed but only read-only), warns it is disabled by default, requires an environment variable, and advises preferring structured tools. This provides clear guidance and exclusion criteria.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kevinkda/clickhouse-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server