Skip to main content
Glama

MCP MySQL Server

by kevinbin

create_table

Add a new table to a MySQL database by defining its name, fields, and optional indexes using the MCP MySQL Server's standardized interface for schema management.

Instructions

Create a new table in the database

Input Schema

NameRequiredDescriptionDefault
fieldsYes
indexesNo
tableYesTable name

Input Schema (JSON Schema)

{ "properties": { "fields": { "items": { "properties": { "autoIncrement": { "optional": true, "type": "boolean" }, "default": { "optional": true, "type": [ "string", "number", "null" ] }, "length": { "optional": true, "type": "number" }, "name": { "type": "string" }, "nullable": { "optional": true, "type": "boolean" }, "primary": { "optional": true, "type": "boolean" }, "type": { "type": "string" } }, "required": [ "name", "type" ], "type": "object" }, "type": "array" }, "indexes": { "items": { "properties": { "columns": { "items": { "type": "string" }, "type": "array" }, "name": { "type": "string" }, "unique": { "optional": true, "type": "boolean" } }, "required": [ "name", "columns" ], "type": "object" }, "optional": true, "type": "array" }, "table": { "description": "Table name", "type": "string" } }, "required": [ "table", "fields" ], "type": "object" }
Install Server

Other Tools from MCP MySQL Server

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

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