Skip to main content
Glama
qxduddes

mysql-mcp

by qxduddes

Find tables

find_tables
Read-only

Locate MySQL tables by matching provided term against table and column names, returning matches with matched table names and columns.

Instructions

Find tables by matching table or column names.

Use this tool when the user knows roughly what they're looking for ("something with customer emails") but not the exact table. Returns JSON: {database, term, matchCount, matches: [{tableName, tableType, engine, matchedTableName, matchedColumns}]}.

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 with the search term and one row per match showing why it matched (name vs columns).

Fallback — Markdown: one-line summary (match count), then a compact Markdown table of matches.

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
termYesSearch term matched against table and column names.
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?

Beyond the readOnlyHint annotation, the description discloses the return JSON structure, matching behavior on both table and column names, and critical presentation instructions (never mentioning the tool name, rendering modes). This is substantial behavioral context that helps the agent act correctly.

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-structured with front-loaded purpose, followed by usage, return format, and presentation rules. It is longer than typical but every section serves a distinct purpose, and the presentation rules are essential for correct agent behavior. Slightly verbose but not wasteful.

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?

Given the tool's moderate complexity, the rich schema (100% coverage), and the presence of an output schema, the description is complete: it covers search behavior, usage, output structure, and presentation. It does not need to explain return values (output schema exists). Minor gaps like case sensitivity or matching semantics are not critical for basic 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?

The input schema already has 100% coverage with descriptions for all three parameters. The description adds minimal extra meaning beyond the schema—it mainly clarifies that 'term' matches names, which is already in the schema. Baseline 3 applies.

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 opens with a specific verb and resource: 'Find tables by matching table or column names.' This clearly distinguishes the tool from siblings like list_tables (which lists all tables) and describe_table (which describes a specific table). The purpose is unambiguous.

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 description states when to use the tool: 'Use this tool when the user knows roughly what they're looking for... but not the exact table.' This is clear usage guidance. However, it does not explicitly mention alternatives or when not to use it, so it falls short of a 5.

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