Skip to main content
Glama
eeantoss

mysql-mcp-server

by eeantoss

database_connect

Establish a connection to MySQL or PostgreSQL databases to enable SQL query execution, database management, and environment switching.

Instructions

Connect to a MySQL or PostgreSQL database

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sslNoEnable SSL (boolean) or SSL options (object)
hostNoDatabase host
portNoDatabase port (mysql default 3306, postgresql default 5432)
typeNoDatabase type: mysql or postgresql
userNoDatabase user
schemaNoPostgreSQL schema (default: public)
charsetNoMySQL charset (default: utf8mb4)
databaseNoDatabase name
passwordNoDatabase password
timezoneNoMySQL timezone (default: local)
dockerPortNoDocker mapped port (when connectionType is docker)
containerNameNoDocker container name (when connectionType is docker)
connectionTypeNoConnection type: direct, docker, or remotedirect
Behavior1/5

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

With no annotations, the description carries the full burden of disclosing behavioral traits, but it only says 'Connect'. It fails to mention that this likely creates a persistent session, may require cleanup via database_disconnect, how authentication works, or what happens on duplicate connections. The description is essentially a label, not an explanation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single short sentence, which is concise but not appropriately structured for a tool with 13 parameters and multiple connection types. It lacks any kind of organization or detail that would guide an agent, making it under-specified rather than elegantly concise.

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

Completeness1/5

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

Given the tool's complexity (13 parameters, no output schema, no annotations), the description is severely incomplete. It does not explain what a successful connection yields, how connection sessions are managed, or how this tool fits into the broader database workflow. The omission of side effects and return behavior leaves the agent with insufficient context.

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%, and the schema itself includes detailed descriptions for all 13 parameters, including defaults and enums. The description adds no extra parameter insight, but the baseline of 3 applies because the schema already thoroughly documents parameters.

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 states the verb 'Connect' and the resource 'MySQL or PostgreSQL database', making the core purpose clear. However, it does not distinguish this tool from siblings like database_test_connection or database_connect_environment, which also relate to connecting or establishing sessions.

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 such as database_test_connection or database_connect_environment. There are no mentions of prerequisites, connection types, or typical 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/eeantoss/mysql-mcp-server'

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