Skip to main content
Glama
Rufflet

mysql-legacy-mcp

mysql_legacy_list_tables

Read-onlyIdempotent

List all base tables and views in a specified MySQL database using SHOW FULL TABLES. Pass the database name to retrieve its schema objects.

Instructions

Lists base tables and views in one database via SHOW FULL TABLES FROM database. Pass database. For column types use mysql_legacy_describe_table; for CREATE TABLE text use mysql_legacy_show_create_table; for keys use mysql_legacy_list_indexes. To list databases first, use mysql_legacy_list_databases.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
databaseYesMySQL database name, 1–64 characters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.1
    • addedInput schema / properties / database / description
      Added value: +"MySQL database name, 1–64 characters."
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is clear. The description adds behavioral context beyond annotations by specifying that it lists both base tables and views, operates on exactly one database, and uses SHOW FULL TABLES. This is meaningful additional transparency.

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

Conciseness5/5

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

The description is compact and front-loaded with the core action and mechanism before moving to sibling routing. Every sentence earns its place, and the structure makes it easy for an agent to quickly parse purpose and alternatives.

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 list operation with one well-documented parameter, the description covers the operation, scope, mechanism, and related sibling tools. No output schema exists, but the description clearly implies the returned content (base tables and views) through SHOW FULL TABLES. Nothing essential is missing for correct selection and invocation.

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 the schema already fully documents the single required 'database' parameter as a MySQL database name with length constraints. The description mainly repeats 'Pass database' and adds the context that this parameter selects the target database, but does not add substantial semantic detail 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?

Description states a specific verb and resource: 'Lists base tables and views in one database via SHOW FULL TABLES FROM database.' It clearly distinguishes this tool from siblings like mysql_legacy_list_databases, mysql_legacy_describe_table, and mysql_legacy_show_create_table by naming the exact scope and mechanism.

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

Usage Guidelines5/5

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

The description explicitly tells the agent to pass the database parameter and routes related tasks to specific siblings: describe_table for column types, show_create_table for CREATE TABLE text, list_indexes for keys, and list_databases for listing databases first. This is explicit when-to-use guidance with concrete alternatives.

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