Skip to main content
Glama
MySQL MCP Server

MySQL MCP Server

by berthojoris

fulltext_search

Read-onlyIdempotent

Run full-text searches on MySQL tables using MATCH AGAINST in natural language, boolean, or query expansion mode, returning results ranked by relevance score.

Instructions

Performs full-text search on a table using MATCH AGAINST clause. Supports natural language, boolean mode, and query expansion. Returns results ordered by relevance score. Use this for efficient text search on indexed columns.

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": {
      "table_name": "<table_name>",
      "search_term": "<search_term>"
    },
    "name": "fulltext_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoSearch mode (default: natural_language)
limitNoOptional: maximum number of results (default: 100)
offsetNoOptional: offset for pagination (default: 0)
columnsNoOptional: array of column names to search (default: all fulltext indexed columns)
databaseNoOptional: specific database name
order_byNoOptional: column to order by (default: relevance_score)
table_nameYesName of the table to search
search_termYesSearch term or query
order_directionNoOptional: order direction (default: DESC)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.46.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world characteristics, so safety is covered. The description adds useful behavioral context (the MATCH AGAINST mechanism, supported modes, and relevance-ordered results), but omits practical behavior such as what happens when a column lacks a fulltext index, error conditions, or response shape.

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?

Four sentences, front-loaded with the core action and mechanism, with the usage hint last. Slight redundancy between 'Returns results ordered by relevance score' and the order_by default already stated in the schema, but nothing is verbose or padded.

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 nine-parameter tool with no output schema, the description covers the mechanism and result ordering but leaves the index prerequisite, failure modes, and result field contents unstated. It is adequate to attempt a call, but not complete for a complex, high-parameter tool.

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 nine parameters are already documented with enums and defaults. The description restates the mode options ('natural language, boolean mode, and query expansion') and ordering behavior, adding only marginal meaning beyond what the schema provides; 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 ('Performs full-text search on a table using MATCH AGAINST clause') plus the underlying mechanism, which is genuinely informative. It does not, however, distinguish itself from siblings like search_data_across_tables or search_schema, so an agent must infer the boundary from the names alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The closing line 'Use this for efficient text search on indexed columns' implies the precondition (a fulltext index must exist on the target columns) and the intended use case. There is no explicit when-not guidance and no named alternative for cross-table or non-indexed searching, so routing remains inferential.

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