Skip to main content
Glama
wangguoxi0814

datasource-mcp

db_exe

Execute SQL queries against MySQL and return results as JSON, with an optional row limit to avoid timeouts.

Instructions

执行 SQL 并返回 JSON 字符串结果。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sqlYesSQL 语句
max_rowsNo查询最大返回行数,防止结果过大导致 MCP 超时

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description carries full responsibility for disclosing behavioral traits. It mentions only that it returns JSON, but doesn't disclose potential side effects (e.g., whether writes are possible), security implications, error behavior, or timeout handling. The max_rows parameter hints at timeout concerns, but the description fails to explain this context.

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 a single sentence, extremely concise and front-loaded. It contains no redundant information and every word contributes to the core meaning. This is an ideal size for such a clear-cut tool.

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?

Executing arbitrary SQL is a high-complexity operation with significant potential for side effects and errors. Despite having an output schema (not provided in context), the description lacks crucial information like whether DDL/DML are allowed, read-only vs. write support, authentication requirements, or how errors are returned. The minimal description is inadequate for the risk level.

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%, with both parameters having descriptions in the schema. The tool description adds no additional meaning beyond what the schema already provides. Baseline 3 is appropriate because the schema does the heavy lifting.

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 action (execute SQL) and the output format (JSON string). It uses a specific verb and resource, making the tool's function unambiguous. With no sibling tools provided, distinction isn't necessary, so it satisfies the 5-level criterion.

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?

The description provides no guidance on when to use this tool versus alternatives, nor any context about appropriate use cases. It merely states what it does, leaving the agent to infer usage. There is no mention of exclusions, prerequisites, or recommended scenarios.

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/wangguoxi0814/datasource-mcp'

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