Skip to main content
Glama
hechtcarmel

Vertica MCP Server

by hechtcarmel

Batch query results

stream_query
Destructive

Execute a bounded SELECT or WITH query once and return all results in batches within a single response; no cursor or incremental streaming is provided.

Instructions

Use for bounded SELECT/WITH results valid inside a subquery. Executes once and returns batches in one response; no cursor or incremental streaming. Use ORDER BY for reproducible ordering. Functions can have side effects.

Input Schema

NameRequiredDescriptionDefault
sqlYesOne Vertica SQL statement, not a script. Use ? placeholders with params; add LIMIT to bound execute_query reads.
paramsNoValues for ? placeholders in SQL order; values only, not identifiers.
maxRowsNoMaximum returned rows. Omit for min(batchSize * 100, 1000000). Truncation does not provide a continuation cursor.
batchSizeNoRows per returned batch, not transport messages.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4/5.0
Behavior4/5

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

Adds real context beyond the annotations: single execution, batches returned together, no continuation cursor, and an explicit warning that functions can have side effects, which is consistent with destructiveHint=true and readOnlyHint=false. The ORDER BY advice and the no-cursor caveat are exactly the kind of behavior an agent cannot recover from structured fields.

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?

Four short sentences, each carrying distinct information: scope, execution model, ordering guidance, side-effect warning. No repetition and the selection condition is front-loaded.

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?

With a full output schema and annotations covering the safety profile, the only thing the description must supply is the batch-versus-stream execution model, and it does that clearly along with the side-effect caveat. Minor gap: it never positions itself explicitly against execute_query, which is the sibling an agent will most likely confuse it with.

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 100%, including defaults, bounds, and the maxRows truncation caveat, so the schema already carries the parameter burden. The description adds only the ORDER BY reproducibility hint, which is behavioral rather than a parameter detail. Baseline 3 applies.

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 capability: bounded SELECT/WITH executed once, returning batches in a single response with no cursor. That distinguishes it in substance from execute_query, but the sibling is never named, so the agent must infer the pairing from the tool name alone.

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?

"Use for bounded SELECT/WITH results valid inside a subquery" gives a positive selection condition, and "no cursor or incremental streaming" implicitly rules out paginated workloads. It stops short of an explicit when-not or a named alternative such as execute_query.

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