Skip to main content
Glama

text_to_sql

AI-powered SQL query generation and optimization. Price: $1.20/call (x402, USDC on Base).

Input Schema

NameRequiredDescriptionDefault
promptYesThe task, question, or input for this AI service.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It discloses the per-call price and payment rail (x402, USDC on Base) — genuinely useful operational context — but says nothing about whether queries are only generated or actually executed, which SQL dialects are targeted, or what the response contains. That execution ambiguity is the most important thing an agent needs to know about a SQL tool.

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?

Two short sentences, purpose front-loaded, no padding. The pricing sentence is worth including, though it could be trimmed; nothing here is redundant with the schema.

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?

For a single-parameter paid service with no output schema and no annotations, the description should at minimum state what comes back (a query string? results? an optimized plan?) and any dialect or schema-context expectations. It omits all of that, leaving the agent unable to predict behavior or output.

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?

There is a single parameter with 100% schema description coverage, so the schema already documents the 'prompt' field. The description adds no syntax, format, or prompt-shaping guidance beyond that, so the 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?

The description names a specific verb+resource pair ('SQL query generation and optimization'), which is unambiguous and clearly distinct from every sibling tool (none of which touch SQL). 'AI-powered' is filler, but the core purpose is unmistakable.

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?

There is no when-to-use, when-not-to-use, or alternative guidance at all. The only context offered is commercial (price per call), which helps with cost decisions but not with tool selection or invocation timing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.