Skip to main content
Glama

CockroachDB MCP Server

create_index

Define and create new indexes on specified table columns to enhance query performance and optimize data retrieval in CockroachDB MCP Server.

Instructions

Create a new index on a specified table to improve query performance. This tool allows users to define indexes on one or more columns, enabling faster data retrieval and optimized execution plans for read-heavy workloads.

Args: table_name (str): Name of the table. index_name (str): Name of the index. columns (List[str]): List of column names to include in the index.

Returns: A success message or an error message.

Input Schema

NameRequiredDescriptionDefault
columnsYes
index_nameYes
table_nameYes

Input Schema (JSON Schema)

{ "properties": { "columns": { "items": { "type": "string" }, "title": "Columns", "type": "array" }, "index_name": { "title": "Index Name", "type": "string" }, "table_name": { "title": "Table Name", "type": "string" } }, "required": [ "table_name", "index_name", "columns" ], "title": "create_indexArguments", "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/amineelkouhen/mcp-cockroach'

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