Skip to main content
Glama
neverinfamous

MySQL MCP Server

MySQL JSON Search

mysql_json_search
Read-only

Search JSON columns in MySQL tables for a specific string value and retrieve the JSON paths where the value occurs.

Instructions

Search for a string value in JSON columns and return matching paths.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
colNoAlias for column
sqlNoAlias for where
valNoAlias for searchValue
modeNoSearch modeone
nameNoAlias for table
pathNoOptional JSON path to search within
limitNoMaximum rows to return
queryNoAlias for where
rowIdNoAlias for where (used with idColumn)
tableNoTable name
valueNoAlias for searchValue
whereNoOptional WHERE clause to filter rows
columnNoJSON column name
filterNoAlias for where
idColumnNoAlias for where (used with rowId)
conditionNoAlias for where
searchStrNoAlias for searchValue
tableNameNoAlias for table
columnNameNoAlias for column
escapeCharNoOptional escape character
searchValueNoString value to search for
searchStringNoAlias for searchValue

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNoError code (e.g. VALIDATION_ERROR, QUERY_ERROR)
dataNo
errorNoError message if operation failed
detailsNoAdditional error context
metricsNoToken estimation metrics
successYesWhether the operation succeeded
categoryNoError category (validation, query, connection, internal)
suggestionNoSuggested fix for the error
recoverableNoWhether the error is recoverable
Behavior3/5

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

The description mentions 'return matching paths,' which adds some behavioral context beyond annotations (readOnlyHint=true, destructiveHint=false). However, it does not detail aspects like case sensitivity, search scope across columns, or path format. The annotations already cover safety, so the description provides marginal additional value.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, clear sentence that efficiently conveys the core functionality with no unnecessary words. It is front-loaded with the action and outcome.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite having output schema and annotations, the description is too brief for a tool with 22 parameters, many aliases. It does not explain essential parameters (e.g., table, column, searchValue) or how to structure a call. The lack of guidance on parameter usage reduces completeness for an agent.

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?

With 100% schema coverage, all parameters are already documented in the schema. The tool description adds no parameter-specific information beyond the schema, so it meets the baseline of 3 without enhancing semantics.

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 clearly states the tool searches for a string value in JSON columns and returns matching paths, which is a specific verb-resource combination. While it doesn't explicitly differentiate from sibling JSON tools like mysql_json_contains or mysql_json_extract, the focus on 'search' and 'return matching paths' distinguishes it adequately.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives (e.g., mysql_json_contains for existence checks). The description lacks contextual cues for appropriate usage scenarios or prerequisites.

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/neverinfamous/mysql-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server