Skip to main content
Glama
MCP-MySQL-Ops

MCP-MySQL-Ops

by call518

get_table_list

List tables in a specified MySQL database or across all user databases, including table type, engine, row count, size, and timestamps; optionally filter by BASE TABLE or VIEW.

Instructions

[Tool Purpose]: List all tables in specified database or all databases

[Exact Functionality]:

  • If database_name provided: Show tables in that specific database

  • If database_name empty: Show tables from all user databases with database names

  • Display table type (BASE TABLE, VIEW), engine, rows count, and size information

  • Show creation and update timestamps

  • Filter by table type if specified

[Required Use Cases]:

  • When user requests "table list", "show tables", "database tables"

  • When exploring database 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_table_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
table_typeNoFilter by table type ("BASE TABLE", "VIEW")
database_nameNoDatabase name to analyze (if empty, shows tables from all databases)

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 carries the full behavioral burden and does disclose meaningful traits: the empty-parameter branch switches from single-database to all-database scope, and it enumerates the returned columns (type, engine, rows, size, timestamps). However, it says nothing about read-only safety, cost or latency of the all-databases branch, permissions required, or result limits, which matters for a fan-out query.

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 bracketed section headers front-load purpose, behavior, and use cases so an agent can stop reading early. Some lines merely restate the schema's parameter behavior, and the header scaffolding is heavier than the content requires, but nothing is truly wasted.

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?

For a two-optional-parameter listing tool with an output schema present, the definition covers scope branching, filtering, and when to reach for it. The only real gaps are operational ones: no note on whether the all-databases mode is expensive or permission-gated.

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% and both parameter descriptions already state the empty-value behavior and the allowed filter values, so the description adds essentially no semantics beyond the schema. The restatement of the empty-database branch is redundant rather than informative.

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 names a specific verb and resource ("List all tables") and explicitly separates the two modes: a named database versus an empty parameter that fans out across all user databases. It is clear on its own, but it never distinguishes itself from close siblings such as get_table_schema_info or get_table_size_info, even though it returns size and type details that overlap with them.

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" block gives concrete trigger phrases ("table list", "show tables", "database tables") plus a context cue about exploring database structure, which is real when-to-use guidance. It stops short of stating when not to use it or naming alternatives, so the agent must infer the boundary with the schema/size tools.

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