Skip to main content
Glama

MySQL-Performance-Tuner-Mcp

get_statements_with_temp_tables

Identify MySQL queries that create temporary tables to detect potential performance issues from disk usage, frequent creation, or excessive size.

Instructions

Get statements that create temporary tables.

Temporary tables can cause performance issues when:

  • They're created on disk instead of memory

  • They're created too frequently

  • They grow too large

Identifies queries that should be optimized.

Note: This tool excludes queries against MySQL system schemas (mysql, information_schema, performance_schema, sys) to focus on user/application query analysis.

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum statements to return
disk_onlyNoOnly show statements with disk temp tables

Input Schema (JSON Schema)

{ "properties": { "disk_only": { "default": false, "description": "Only show statements with disk temp tables", "type": "boolean" }, "limit": { "default": 25, "description": "Maximum statements to return", "type": "integer" } }, "required": [], "type": "object" }

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/isdaniel/MySQL-Performance-Tuner-Mcp'

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