Skip to main content
Glama

mcp-mysql-lens

MIT License
152
  • Apple
  • Linux

execute_query

Execute read-only SQL queries to retrieve data from MySQL databases using SELECT, SHOW, DESCRIBE, and EXPLAIN statements for database analysis and information retrieval.

Instructions

Execute a read-only SQL query

Input Schema

NameRequiredDescriptionDefault
databaseNoDatabase name (optional, uses default if not specified)
queryYesSQL query (only SELECT, SHOW, DESCRIBE, and EXPLAIN statements are allowed)

Input Schema (JSON Schema)

{ "properties": { "database": { "description": "Database name (optional, uses default if not specified)", "type": "string" }, "query": { "description": "SQL query (only SELECT, SHOW, DESCRIBE, and EXPLAIN statements are allowed)", "type": "string" } }, "required": [ "query" ], "type": "object" }

Other Tools from mcp-mysql-lens

Related Tools

    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/Himanshu-Agg12/mcp-mysql-lens'

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