Skip to main content
Glama
yangfeng20

dynamic-db-mcp-server

by yangfeng20

register_instance

Register a MySQL-compatible database connection at runtime, testing connectivity before caching and replacing any existing connection with the same name.

Instructions

Register a MySQL-compatible database connection at runtime.

Tests the connection with SELECT 1 before caching. If a connection with the same name already exists, it is closed and replaced.

Args: name: A human-readable identifier for this instance (used as instance_id). host: Database host or IP address. port: Database port (e.g. 3306). user: Database username. password: Database password. database: Optional default database/schema. charset: Connection charset, defaults to utf8mb4.

Returns: JSON string with instance_id and status, or error details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostYes
nameYes
portYes
userYes
charsetNoutf8mb4
databaseNo
passwordYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Discloses testing with SELECT 1 and replacement of existing connections; no annotations provided, so description carries burden well, though omits potential side effects or concurrency handling.

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?

Well-structured with Args section but slightly verbose; could be trimmed while retaining clarity.

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?

Covers purpose, behavior, and return value; output schema exists, so description is adequate; no major gaps identified.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema coverage, description thoroughly explains each parameter's meaning, including defaults for charset and database, adding significant value beyond the schema.

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?

Clearly states it registers a MySQL-compatible database connection at runtime, distinguishing it from siblings like execute_sql and list_instances.

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?

Explains connection testing and replacement behavior but lacks explicit guidance on when to use vs alternatives, e.g., when a connection object is needed.

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/yangfeng20/dynamic-db-mcp-server'

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