Skip to main content
Glama
atarkowska

fastmcp-sqltools

by atarkowska

execute_safe_query

Execute read-only SQL SELECT queries safely, preventing accidental data modification. Use parameterized queries for secure database access.

Instructions

Execute a read-only SQL query (SELECT only). This is safer than execute_query as it prevents data modification.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesSQL SELECT query to execute
paramsNoOptional list of query parameters for parameterized queries

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Without annotations, the description carries the full burden. It clearly declares the tool is read-only and prevents data modification, which is critical behavioral info. Could be more detailed about error handling or concurrency, but sufficient for a simple read-only tool.

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 concise sentences that are front-loaded with the core purpose. No unnecessary words, every sentence adds value.

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 existence of an output schema and only two parameters, the description provides enough context for correct use. It clarifies the safe nature and distinguishes from siblings. Lacks mention of parameterized queries, but the schema covers that.

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 coverage is 100%, and the description adds minimal value beyond the schema. The schema already describes the 'query' and 'params' parameters adequately; the description does not provide additional semantic guidance.

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 that the tool executes a read-only SQL SELECT query, and explicitly distinguishes it from the sibling 'execute_query' by emphasizing safety and prevention of data modification.

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 provides guidance that this tool is safer than execute_query for read-only queries, implying when to use it. However, it does not explicitly state when not to use it or mention alternatives beyond execute_query.

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/atarkowska/fastmcp-sqltools'

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