Skip to main content
Glama
MCP-MySQL-Ops

MCP-MySQL-Ops

by call518

get_database_list

Lists all databases in a MySQL server, including names, character sets, collations, and available size details, to support schema inspection and server exploration.

Instructions

[Tool Purpose]: List all databases in MySQL server

[Exact Functionality]:

  • Show all databases with names and character sets

  • Display database size information if available

  • Show collation and default character set

[Required Use Cases]:

  • When user requests "database list", "show databases", "available databases"

  • When exploring server structure

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

Input Schema

NameRequiredDescriptionDefault
database_nameNoDatabase name to connect to (uses default if omitted)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden. It does disclose the returned content (names, charset, collation, size), and 'List' implies read-only, but it never states that results are privilege-filtered to databases visible to the current user, nor confirms the operation has no side effects. That visibility caveat is the single most important behavioral fact for SHOW DATABASES-style output and it is missing.

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?

Front-loaded with a labeled purpose, then functionality and use cases, so an agent can scan it quickly. The bullet 'Show all databases with names and character sets' partially duplicates 'Show collation and default character set', which is minor redundancy rather than wasted bulk.

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?

An output schema exists, so return values need no further explanation, and the single parameter is fully documented in schema. The description covers what the tool is and when to reach for it; only the privilege-visibility caveat is absent.

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?

There is one optional parameter with 100% schema description coverage, so the schema already explains database_name and its default behavior. The description adds no context on when overriding the connection database matters; baseline 3 applies.

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?

Stated as a specific verb+resource: 'List all databases in MySQL server', with the exact fields returned (names, character sets, collation, size). It is clear what the tool does, but it never distinguishes itself from siblings like get_database_size_info or get_current_database_info, despite claiming to 'display database size information if available', which overlaps that sibling.

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

Usage Guidelines4/5

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

The 'Required Use Cases' section gives concrete trigger phrases ('database list', 'show databases', 'available databases') and a context ('exploring server structure'), which is enough for an agent to pick this over a generic server-info call. It stops short of explicit exclusions or naming the sibling to use when size details are the real goal.

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