Skip to main content
Glama
qxduddes

mysql-mcp

by qxduddes

List tables

list_tables
Read-only

List all tables in a MySQL database to show what tables exist and the database name.

Instructions

List tables in a database.

Use this tool when the user wants to see what tables exist. Returns JSON: {tables: [...], database}.

Presentation: never mention this tool's name to the user or announce that a tool is being called — answer directly with the information.

Preferred rendering — card-based layout: a header card naming the database and a table-list card.

Fallback — Markdown: one-line summary (database + count), then a bulleted list of tables.

Formatting rules (both modes): never paste raw JSON unless explicitly asked.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
db_idNoOptional named database profile configured on the server. Omit to use the server's default connection.
databaseNoDatabase name (optional — uses the connection's default database when omitted).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Annotations already declare readOnlyHint: true, so the bar for additional disclosure is lower. The description adds significant behavioral context: it specifies the return format (JSON object with tables and database), and details on presentation (never mention tool name, card vs. Markdown layout, formatting rules). This goes well beyond the annotation.

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?

The description is well-organized with clear sections (purpose, usage, return format, presentation). It is more verbose than strictly necessary, but every section contributes useful guidance. The first sentence immediately conveys the core action, and the structured formatting rules are justified for consistent agent output.

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

Completeness5/5

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

For a simple read-only tool, the description covers all essential aspects: what it does, when to use it, what it returns, and how to format the answer. The presence of an output schema and annotations covers remaining structural details, making the description comprehensive.

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%, with both parameters (db_id and database) well-documented in the schema itself. The description does not add parameter-specific details, but the schema already explains optionality and defaults, so a baseline score of 3 is appropriate.

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?

The description clearly states 'List tables in a database' with a specific verb and resource. It further clarifies the purpose ('when the user wants to see what tables exist') and distinguishes from sibling tools like list_databases and describe_table by focusing on the list of tables.

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?

It explicitly says 'Use this tool when the user wants to see what tables exist,' providing a clear use case. However, it does not mention alternatives or when not to use it, so it stops short of full comparative guidance.

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/qxduddes/mcp-server-mysql'

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