Skip to main content
Glama
Aguantar

io.github.Aguantar/clickhouse-dataops-mcp

by Aguantar

ch_pipeline_latency

Identify latency bottlenecks in CDC pipeline by analyzing per-segment delays (source to Kafka, Kafka to Flink, Flink to ClickHouse) with percentile metrics and freshness. Filter by market and time window.

Instructions

Analyze CDC pipeline latency by segment.

Measures latency at each stage of the pipeline:

  • source_to_cdc: Upbit → Debezium/Kafka

  • cdc_to_flink: Kafka → Flink processing

  • flink_to_insert: Flink → ClickHouse write

  • end_to_end: total source_ts → inserted_at

Each segment reports p50, p95, p99, and max latency in milliseconds. Also includes data freshness (seconds behind real-time) and per-market breakdown.

Args: market: Filter by market (e.g., "KRW-BTC"). Empty = all markets period: Time window — "10m", "1h", "6h", or "24h" (default: "1h")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
marketNo
periodNo1h

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It details the measured metrics (p50, p95, p99, max, freshness) and segments, but does not explicitly state that the tool is read-only. The behavioral impact is well-described, but a safety statement would improve transparency.

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 well-structured with a summary sentence followed by detailed lists. It is concise and front-loaded, with no wasted words, though it could be slightly more compact.

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?

The description covers the key output metrics and segments. Since an output schema exists, the return values are defined there. It lacks mention of error conditions or limits, but is adequate for a monitoring tool.

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

Parameters4/5

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

Schema coverage is 0%, but the description compensates with clear explanations for both parameters, including examples and defaults. It adds significant meaning beyond the schema's property names.

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 'Analyze CDC pipeline latency by segment', providing a specific verb and resource. It lists the segments and metrics, distinguishing this tool from siblings like ch_data_quality and ch_query, which serve different purposes.

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?

The description implies usage for latency monitoring but does not explicitly state when not to use it or provide alternatives. However, the clear scope and sibling context make it evident when to select this tool.

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/Aguantar/clickhouse-mcp-server'

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