Skip to main content
Glama
S-CurveLabs

letin

Official
by S-CurveLabs

evaluate_query

Read-only

Evaluate a query up to a specific step to return columns, types, and sample rows. Use it to validate transformations or identify the step where errors first appear.

Instructions

Freshly evaluate a query, or the query only up to step, and return columns, types and sample rows. Use it to get real column names before apply_transform, to see what a step does to the data, or to find the step where an error first appears (evaluate step by step).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rowsNo
stepNo
queryYes
sourceYes
profileNo
count_rowsNo
timeout_secondsNo
ignore_privacy_levelsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior4/5

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

Beyond the readOnlyHint annotation, it discloses that evaluation is fresh (not cached), that only part of the query may be evaluated when `step` is provided, and that output includes columns, types, and sample rows. It also hints at error-discovery behavior when evaluating step by step.

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?

Two sentences with no filler: behavior first, then targeted use cases. Every clause adds information, and the key parameter is named inline.

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

Completeness2/5

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

The tool has 8 parameters, no parameter descriptions in schema, and no output schema, so the description carries a heavy burden. It covers the core behavior but omits many parameters that an agent may need, especially `ignore_privacy_levels`, `profile`, and `count_rows`.

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?

With 0% schema description coverage, the description needed to explain parameters. It clarifies `step` and implies `rows` via 'sample rows', but leaves `source`, `profile`, `count_rows`, `timeout_seconds`, and `ignore_privacy_levels` unexplained. The prose does not compensate for the schema's lack of parameter descriptions.

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 identifies the action (evaluate a query), the optional limit (`up to step`), and the result (columns, types, sample rows). It does not explicitly distinguish itself from similar siblings like evaluate_steps or preview_query, but the intended behavior is unambiguous.

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?

It gives concrete use cases: fetching real column names before apply_transform, inspecting step effects, and locating the first error by evaluating step by step. It does not state exclusions or alternative tools, but the guidance is specific enough 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.