Skip to main content
Glama
gxc

gaussdb-ro-mcp

by gxc

execute_select

Execute read-only SELECT queries on GaussDB with enforced safety: blocks DML/DDL, row locks, multi-statements, and dangerous functions in a forced read-only transaction.

Instructions

执行只读 SELECT 查询(唯一允许的 SQL 入口)。仅接受单条 SELECT/WITH 语句:禁止 DML/DDL、SELECT INTO、行锁、多语句与危险函数;查询在服务端强制的只读事务中执行。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sqlYes要执行的 SELECT 语句(必填),仅允许单条 SELECT/WITH 查询
instanceNo数据源名称(配置文件中 instance 的 name),省略时使用默认实例
max_rowsNo本次返回的最大行数,默认取实例配置,上限受服务端限制

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations, the description fully carries the behavioral disclosure burden. It states that queries execute inside a server-enforced read-only transactionccurately characterizes the tool's safety and constraint behavior. This goes well beyond a minimal description.

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 one dense, front-loaded sentence that packs purpose, constraints, and transaction behavior without redundancy. Every clause adds value and there is no filler.

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?

Given the lack of an output schema, the description is complete on safety and allowed usage, and max_rows implies row results. A slight gap is the absence of any explicit description of the return shape or error behavior, but this is minor for a tool whose main risk is safely constraining SQL execution.

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?

The schema covers all three parameters with 100% description coverage, so the baseline is 3. The description reinforces the single-statement SELECT/WITH restriction but adds no new parameter-level detail beyond what the schema already documents.

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 the tool executes read-only SELECT queries and is the 'only allowed SQL entry,' which strongly identifies its purpose. It also differentiates itself from sibling metadata/connection tools such as describe_table and list_tables.

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 gives explicit usage context: it is the only SQL entry point and only accepts single SELECT/WITH statements. It lists forbidden operations (DML/DDL, SELECT INTO, row locks, multi-statements, dangerous functions). It does not directly name sibling alternatives, but the constraints make the intended usage clear.

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