Skip to main content
Glama
GeminiDesk MCP
by LZ7TOP

List MySQL Databases

mysql_list_databases

Retrieves all database names from a MySQL instance, with optional host, port, user, profile, and password overrides for connecting to different servers or accounts.

Instructions

查询 MySQL 实例中的全部数据库名称。

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": "mysql_list_databases"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostNo可选覆盖主机
portNo可选覆盖端口
userNo可选覆盖用户名
profileNo连接配置档案名,默认使用 defaultProfile
passwordNo可选覆盖密码

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

C2.9/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 behavioral burden and does not meet it. It does not say whether system schemas (mysql, information_schema) appear in the result, what credentials or permissions are required, or how the connection profile is resolved when profile/host/password are omitted.

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?

A single short sentence with no filler and the resource front-loaded. It is efficient, but the extreme brevity comes at the cost of any usage or connection context rather than being a model of tight structure.

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

Completeness2/5

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

For a tool exposing five connection parameters with no annotations and no output schema, the description should at least say the result is a bare list of names and how the default profile interacts with the override parameters. Neither is covered, leaving real gaps for an agent configuring a connection.

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%, so all five parameters (host, port, user, profile, password) are already documented in the schema, which sets the baseline at 3. The description adds no meaning about override precedence or default-profile fallback beyond what the schema states.

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 sentence names a specific verb (查询) and resource (MySQL 实例中的全部数据库名称), so the agent knows exactly what it returns: database names, not tables or profile entries. It distinguishes itself from mysql_list_tables and mysql_list_profiles by resource alone, though it never explicitly names those siblings.

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?

There is no when-to-use guidance, no stated prerequisites, and no mention of alternatives such as mysql_list_tables for drilling into a database. The only guidance is implied by the tool name and the word 全部 (all).

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