Skip to main content
Glama
MySQL MCP Server

MySQL MCP Server

by berthojoris

search_data_across_tables

Read-onlyIdempotent

Search a keyword across text-like MySQL table data when schema metadata does not show where a concept is stored, with configurable table and per-table result limits.

Instructions

🔍 Guarded read-only keyword scan across text-like table data. Use only when schema metadata does not reveal where a concept is stored; enforces max table and per-table result limits.

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": {
      "keyword": "<keyword>"
    },
    "name": "search_data_across_tables"
  }
}

Input Schema

NameRequiredDescriptionDefault
tablesNoOptional: restrict scan to these tables
columnsNoOptional: restrict scan to these column names
keywordYesKeyword to search inside text-like column values
databaseNoOptional: specific database name
max_tablesNoOptional: maximum tables to scan (default 20, max 100)
limit_per_tableNoOptional: maximum rows returned per table (default 5, max 20)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.46.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds useful behavior beyond that: it is 'guarded' and enforces max table and per-table result limits, warning the agent that results are bounded. It does not state what happens when limits are hit or how truncation is signalled.

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?

Two compact sentences with the core operation and the usage restriction front-loaded; nothing is padding. The leading emoji is decorative noise, and 'read-only' mildly duplicates readOnlyHint, but the size is well matched to the tool.

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 six fully documented parameters and a rich annotation set, the description covers what the tool does and its bounds. The one real gap is the absence of any statement about result shape (how rows are grouped per table, whether truncation is flagged), which matters given there is no output schema.

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 all six parameters (tables, columns, keyword, database, max_tables, limit_per_table) are already documented with defaults and maxima. The description adds no parameter-level meaning beyond restating that limits apply, so the baseline 3 is appropriate.

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?

States a specific verb and resource: a keyword scan across text-like table data, framed as read-only and guarded. It implicitly contrasts with schema-metadata tools via the 'when schema metadata does not reveal where a concept is stored' clause, though no sibling (e.g., fulltext_search, search_schema) is named explicitly.

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?

Gives a clear gating condition: 'Use only when schema metadata does not reveal where a concept is stored,' which is a genuine when-to-use restriction and implies when-not-to-use. It stops short of naming the alternative tools an agent should reach for first, leaving the routing inference to the reader.

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