Skip to main content
Glama
SQL MCP Server

SQL MCP Server

by kK-2004

db_connect

Connect to MySQL or SQLite databases to verify credentials and database access before inspecting schemas or running allowed queries.

Instructions

Connect to database and verify credentials/database access.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "db_connect"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. It says the tool verifies credentials but omits whether a persistent connection or session state is created, whether repeated calls are safe, what permissions are required, and what failure modes look like — all important for a connection-establishing tool.

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?

One short sentence front-loads the connection action and appends the verification purpose with no wasted preamble. The compressed 'credentials/database access' phrasing is slightly ambiguous but does not undermine the structure.

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

Completeness3/5

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

The tool is structurally simple (no parameters, no output schema), but the description does not explain connection lifetime or whether the connection persists for later db_query/db_insert calls. For a zero-parameter setup tool, that missing behavioral context is a real gap even if the surface area is small.

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 tool takes zero parameters, so there is no parameter meaning to add beyond the schema. The baseline of 4 applies because the description does not need to compensate for undocumented inputs.

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

Purpose4/5

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

The description names a specific verb and resource ('Connect to database') and adds a verification clause ('verify credentials/database access'), which is more than a restatement of the title. However, it does not contrast the tool with siblings like db_query or db_describe_schema, so the agent must infer the distinction.

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 verification wording implies a pre-flight connectivity check, which is useful implied usage guidance. There is no explicit when-to-use or when-not-to-use statement relative to db_query, db_insert, or db_delete, so an agent could call it redundantly before operations that already connect.

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