Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
TOP_KNoChunks retrieved per search.8
ELICITNoPrompt the user directly when the client supports MCP elicitation.true
DB_FIELDSNoCandidate metadata keys for database fields.
MAX_TOP_KNoMaximum chunks retrieved per search.30
MIN_SCORENoExtra absolute score floor; 0 disables it.0
MAX_TABLESNoTables rendered in one answer.4
EMBED_MODELNoEmbedding model. Must match the model used to upsert the index.multilingual-e5-large
SQL_DIALECTNoSQL dialect hint passed to the model.MySQ L
TEXT_FIELDSNoCandidate metadata keys for text fields, tried in order.
CACHE_TTL_MSNoIn-process TTL cache for searches, fetches and inventory; 0 disables.600000
TABLE_FIELDSNoCandidate metadata keys for table fields.
AMBIGUITY_GAPNoBiggest score drop in the top results below which the ranking counts as flat. Raise to be asked more often.0.015
MAX_CANDIDATESNoLength of the shortlist.8
MCP_AUTH_TOKENNoRequired when hosted; unused over stdio. Bearer token for /mcp endpoint.
PINECONE_INDEXNoPinecone index name.ask-db
ASK_WHEN_UNSURENoSet to false to always answer with the best guess.true
LIST_SCAN_LIMITNoCap on list_tables scanning.1000
DEFAULT_DATABASENoScope every lookup to one database, e.g. speed_core_live.
PINECONE_API_KEYYesRequired. Your Pinecone API key.
SCAN_CONCURRENCYNoRecord batches fetched in parallel while scanning.6
INVENTORY_WAIT_MSNoHow long a search waits for a table scan still warming up; 0 never waits.3000
MAX_LISTED_TABLESNoNames printed by list_tables before asking for a filter.120
MAX_RESPONSE_CHARSNoWhole-response cap in characters.7000
PINECONE_NAMESPACENoPinecone namespace. Empty for default namespace.
MAX_CHARS_PER_TABLENoPer-table DDL cap in compact detail.1400

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_schemaA

Semantic search over the database schema stored in Pinecone. Call this FIRST for any text-to-SQL request: pass the user question verbatim and you get back the relevant tables, columns, types and relationships to write the query against.

get_table_schemaA

Fetch the full stored DDL for one or more tables by exact name. Use after search_schema when you need every column of a table, or when the user named the table.

list_tablesA

Inventory of every table in the schema index, grouped by database, plus the index configuration. Use it to orient yourself, or when search_schema comes back empty.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.3/5.0

Scored across 3 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: search_schema for semantic discovery, get_table_schema for exact DDL retrieval, and list_tables for inventory. There is no overlap or ambiguity between them.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern in snake_case (search_schema, get_table_schema, list_tables), making them predictable and easy to understand.

Tool Count4/5

Three tools is minimal but appropriate for the focused domain of database schema exploration. Each tool earns its place and covers the essential operations without being overly sparse.

Completeness5/5

The tool set fully covers schema discovery: semantic search, exact schema lookup, and table listing. For the stated purpose of enabling text-to-SQL by providing schema info, there are no obvious gaps.

Maintenance

ActivityMaintained
ResponsivenessSyncing