Skip to main content
Glama

LINE Bot MCP Server

by tndfame

ai_query_mssql

Generate and execute safe read-only MSSQL SELECT queries from natural language instructions using Gemini AI. Validate queries and return results with configurable row limits and schema restrictions.

Instructions

Generate a safe read-only MSSQL SELECT from instruction via Gemini, validate, execute, and return rows.

Input Schema

NameRequiredDescriptionDefault
allowedSchemasNoOptional whitelist of schemas (e.g., ['dbo','sales'])
allowedTablesNoOptional whitelist of fully qualified tables (e.g., ['dbo.customer_dummy'])
instructionYesNatural language request to query MSSQL (Thai/English)
maxRowsNoMax rows to return

Input Schema (JSON Schema)

{ "properties": { "allowedSchemas": { "description": "Optional whitelist of schemas (e.g., ['dbo','sales'])", "items": { "type": "string" }, "type": "array" }, "allowedTables": { "description": "Optional whitelist of fully qualified tables (e.g., ['dbo.customer_dummy'])", "items": { "type": "string" }, "type": "array" }, "instruction": { "description": "Natural language request to query MSSQL (Thai/English)", "minLength": 1, "type": "string" }, "maxRows": { "default": 10, "description": "Max rows to return", "maximum": 200, "minimum": 1, "type": "integer" } }, "required": [ "instruction" ], "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/tndfame/mcp_management'

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