Skip to main content
Glama
yaowenqiang

impala-mcp-server

by yaowenqiang

get_slow_query_records

Read-onlyIdempotent

Retrieve recent or slow queries from the Impala workload-management query log. Filter by time range or minimum duration to analyze performance issues.

Instructions

Recent/slow queries from the Impala workload-management query log (sys.impala_query_log by default; needs Impala 4.2+ / CDP). Filter by time_range_hours or min_duration_ms.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
min_duration_msNo
time_range_hoursNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish read-only/idempotent/non-destructive behavior. The description adds useful runtime context: the default backing log, the Impala 4.2+/CDP prerequisite, and the available filters. This is meaningful behavioral information beyond the annotations, though it stops short of detailing ordering or default result behavior.

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?

The description is two sentences, front-loads the core behavior and source, and has no filler or repeated schema information.

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?

For a read-only retrieval tool with an output schema, the description covers the essential operational context: what data is queried, the source and version requirement, and the main filters. Minor gaps such as result ordering and filter semantics do not prevent a capable agent from invoking it correctly.

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 description coverage is 0%, so the description must compensate. It explains the purpose of time_range_hours and min_duration_ms as filters, but does not clarify the limit parameter, whether the filters can be combined, or whether thresholds are inclusive.

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?

The description clearly states the tool returns recent/slow queries from a specific Impala log, and the source (sys.impala_query_log) differentiates it from the sibling metadata tools. It lacks an explicit main verb, but the tool name plus resource makes the operation unambiguous.

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?

The description implies the usage context—querying the Impala workload-management log for slow/recent queries—and names the relevant filter parameters. However, it does not state when to prefer this tool over siblings such as query or explain_query, nor give exclusions.

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