Skip to main content
Glama

create_table

Generate a new table in the SQLite database by executing a CREATE TABLE SQL statement, enabling structured data storage for variance analysis in conversation logs.

Instructions

Create a new table in the SQLite database

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesCREATE TABLE SQL statement

Implementation Reference

  • Handler function for the 'create_table' tool. Validates that the input query starts with 'CREATE TABLE', executes it using the database utility, and returns a success message.
    elif name == "create_table": if not arguments["query"].strip().upper().startswith("CREATE TABLE"): raise ValueError("Only CREATE TABLE statements are allowed") db._execute_query(arguments["query"]) return [types.TextContent(type="text", text="Table created successfully")]
  • Registration of the 'create_table' tool in the list_tools handler, including its description and input schema for validation.
    types.Tool( name="create_table", description="Create a new table in the SQLite database", inputSchema={ "type": "object", "properties": { "query": {"type": "string", "description": "CREATE TABLE SQL statement"}, }, "required": ["query"], }, ),

Other Tools

Related 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/truaxki/mcp-variance-log'

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