Skip to main content
Glama
tokenlite-mysql-mcp

tokenlite-mysql-mcp

by andezdev

mydatabase_search_schema

Read-only

Explore schema by fuzzy-searching a table name to retrieve its DDL, related parent/child table DDLs, foreign-key hints, and semantic metadata before writing queries.

Instructions

CRITICAL TOOL FOR SCHEMA EXPLORATION: Use this FIRST before writing queries. Fuzzy-searches a table name and returns its DDL plus direct parent/child table DDLs (Auto-Join Context), inferred FK hints, and semantic dictionary entries from metadata.json when configured. If templates.json is loaded, reminds you to use the 'query_templates' prompt for business metrics. Do NOT use execute_safe_query for schema exploration.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "mydatabase_search_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesThe name of the table or entity to search for (e.g. 'users', 'invoices').

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.1.2

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 and openWorldHint=false, and the description adds real context beyond them: the response includes parent/child DDLs (Auto-Join Context), inferred FK hints, and semantic dictionary entries that depend on whether metadata.json is configured. It does not cover edge cases such as no-match results or how many tables are returned when a fuzzy match is ambiguous.

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?

Front-loaded with the critical instruction and the core purpose, then the return contents, then alternatives. The all-caps preamble 'CRITICAL TOOL FOR SCHEMA EXPLORATION' is slightly redundant with the sentence that follows but does anchor attention; otherwise every clause carries information.

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?

With no output schema, the description does the work of explaining what comes back (DDL, Auto-Join Context, FK hints, dictionary entries) and flags configuration-dependent behavior for metadata.json and templates.json. Missing only failure/empty-result behavior for a fuzzy single-parameter lookup.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the parameter definition already carries the burden; the description still adds that matching is fuzzy, implying partial or approximate table names are acceptable. That is a meaningful behavioral detail beyond the schema's example-based description.

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?

States a specific verb and resource: fuzzy-searches a table name and returns DDL plus parent/child table DDLs, FK hints, and semantic dictionary entries. It is clearly distinguishable from sibling tools, naming execute_safe_query as the query path rather than the exploration path.

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?

Explicitly routes usage: 'Use this FIRST before writing queries' and 'Do NOT use execute_safe_query for schema exploration.' It also names a downstream action (use the 'query_templates' prompt for business metrics when templates.json is loaded), leaving little to infer.

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