Skip to main content
Glama
andrewwgordon

mcp-chinookdb-server

run_sql_query

Execute read-only SQL SELECT queries against the Chinook sample database to retrieve and explore data safely.

Instructions

Executes a read-only (SELECT) SQL query against the Chinook database.
Only SELECT statements are allowed for safety.
Args:
    sql_query: The SQL SELECT query to execute.
Returns:
    Query results as a formatted string, or an error message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sql_queryYes
Behavior3/5

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

With no annotations, the description must disclose behavioral traits. It states the tool is read-only, only accepts SELECT queries, and returns a formatted string or error. This covers safety and output format but lacks details on authentication, rate limits, or error handling specifics. The information is adequate but not exhaustive.

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?

The description is three sentences: purpose/constraint, re-emphasis of constraint, and args/returns. It is brief and front-loads the key information. Minor redundancy ('read-only SQL query' and 'Only SELECT statements allowed') could be merged, but overall it is efficient.

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 simple tool (one parameter, no output schema), the description covers the essential: what it does, the constraint (SELECT only), and return format. It does not mention the database is a sample or any connection details, but for the tool's complexity, it is sufficiently complete.

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 has 0% description coverage, so the description must compensate. The description explains the 'sql_query' parameter as 'The SQL SELECT query to execute,' which clarifies it must be a SELECT. However, it does not specify formatting, escaping, or length constraints. This adds some meaning but not comprehensive detail.

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 SQL SELECT queries against the Chinook database. It specifies the verb (executes), resource (Chinook database), and action type (SELECT only), which is specific and unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description states that only SELECT statements are allowed, which implies read-only usage. However, it does not provide explicit guidance on when to use this tool versus alternatives, nor does it mention when not to use it. Since no sibling tools exist, the lack of comparison is less critical, but the guideline is still minimal.

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/andrewwgordon/mcp-chinookdb-server'

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