Skip to main content
Glama
GeminiDesk MCP
by LZ7TOP

List MySQL Tables & Status

mysql_list_tables

List all table names, engines, estimated row counts, and storage size for a specified MySQL database to inspect schema and capacity at a glance.

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_tables"
  }
}

Input Schema

NameRequiredDescriptionDefault
profileNo连接配置档案名
databaseNo数据库名(留空使用 profile 默认库)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.2/5.0
Behavior3/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. It usefully discloses that row counts are estimates (行数估算) and that size/engine metadata is included, but it says nothing about permissions, read-only safety, cost on large schemas, or ordering of results.

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 well-formed sentence with the resource and returned fields front-loaded and no filler. It is efficient, though it leaves no room for the usage context that would make it stronger.

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

Completeness3/5

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

For a simple two-optional-parameter list tool with no output schema, naming the returned columns is a real contribution and largely suffices. The absence of annotations means it should also cover read-only nature and when a sibling is preferable, which it does not.

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 coverage is 100%, so both parameters are already documented, and the description only implies the 'database' parameter ('指定...数据库') while never mentioning 'profile'. Baseline 3 is appropriate since the schema does the heavy lifting.

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 description uses a specific verb and resource ('查询指定 MySQL 数据库中的全部表名') and enumerates the returned attributes (引擎、行数估算、占用空间), so an agent knows exactly what it gets. It does not distinguish itself from nearby siblings such as mysql_list_databases or mysql_describe_table, which keeps it from a 5.

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 statement of when to use this tool versus mysql_describe_table (single-table detail) or mysql_query (arbitrary SQL). Usage is only implied by the tool name and the word '全部', with no prerequisites or exclusions given.

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