Skip to main content
Glama
siddontang

TiDB Cloud Zero MCP Server

by siddontang

query

Execute read-only SQL statements (SELECT, SHOW, DESCRIBE, EXPLAIN) against a MySQL database and retrieve results as formatted tables.

Instructions

Execute a read-only SQL query (SELECT, SHOW, DESCRIBE, EXPLAIN).

Returns results as a formatted table.

Examples: query("SELECT * FROM users LIMIT 10") query("SHOW TABLES") query("DESCRIBE users")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sqlYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries the full burden. It explicitly states the tool is read-only, which is a critical safety signal, and mentions that results are returned as a formatted table. It does not cover potential errors or limits, but the core behavior is well-disclosed.

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 extremely concise: a single purpose sentence, a result note, and three examples. Every sentence adds value and the key information is front-loaded.

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

Completeness5/5

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

The tool is simple (one parameter) and an output schema exists, so return values are already defined. The description covers usage, allowed statements, and output format, making it complete for an agent to invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has only 'sql' with no description (0% coverage). The description compensates by specifying allowed statement types (SELECT, SHOW, DESCRIBE, EXPLAIN) and providing concrete examples, adding semantic meaning beyond the raw parameter name.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Execute a read-only SQL query' with specific allowed commands (SELECT, SHOW, DESCRIBE, EXPLAIN), which is a specific verb+resource. The read-only scoping distinguishes it from the sibling tool 'execute'.

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?

The description clearly indicates this is for read-only SQL queries, providing context for when to use it. However, it does not explicitly mention alternatives or exclusions, though the read-only scope is an implicit exclusion.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/siddontang/tidb-cloud-zero-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server