Skip to main content
Glama
yaowenqiang

impala-mcp-server

by yaowenqiang

get_table_comment

Read-onlyIdempotent

Retrieve the table comment for an Impala table by specifying database and table names, parsed from SHOW CREATE TABLE output.

Instructions

Return the table-level comment parsed from SHOW CREATE TABLE.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
db_nameYes
table_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior. The description adds that the comment is parsed from SHOW CREATE TABLE, which is useful context beyond the annotations. It does not mention edge cases like missing comments or permission requirements, but the annotation safety profile lowers the burden.

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 a single, focused sentence with no filler. The core behavior and data source are front-loaded, making it easy to scan.

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 simple read-only getter with only two required parameters and an output schema, the description is largely complete. Annotations cover side-effect safety. Minor gaps remain around null-result behavior and error conditions, but they are not blocking for correct invocation.

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%, and the description does not explain db_name or table_name. The parameter names are self-explanatory, but the description fails to compensate for the missing schema descriptions, so it adds no meaning beyond the input schema.

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 uses a specific verb ('Return') and a precise resource ('table-level comment'), and clarifies the source ('parsed from SHOW CREATE TABLE'). It is clear, but it does not explicitly differentiate this tool from siblings like get_ddl or get_table_schema.

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

Usage Guidelines2/5

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

The description gives no guidance on when to use this tool versus alternatives such as get_ddl or get_table_schema. The phrase 'parsed from SHOW CREATE TABLE' hints at its niche, but there is no explicit when-to-use or when-not-to-use guidance.

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