Skip to main content
Glama
mcp-hr-sql-readonly

mcp-hr-sql-readonly

by Marcovo93

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ZUCCHETTI_PASSNoPassword Zucchetti valida per gli ambienti senza credenziali proprie.
ZUCCHETTI_USERNoUtente Zucchetti valido per gli ambienti senza credenziali proprie.
MCP_HR_SQL_HOMENoCartella di registro, .env e sessioni (default ~/.mcp_hr_sql_readonly/).
MCP_HR_SQL_CONFIGNoPercorso alternativo del registro degli ambienti.
MCP_HR_SQL_ENV_FILENoPercorso alternativo del file .env.
MCP_HR_SQL_TEMPLATENoPercorso alternativo del file dei query template (default ~/.mcp_hr_sql_readonly/query_template.json).
MCP_HR_SQL_MAX_RIGHENoTetto massimo del numero di righe restituite dallo strumento query.
ZUCCHETTI_PASS_<NOME>NoPassword Zucchetti per l'ambiente indicato da <NOME> (nome dell'ambiente in maiuscolo).
ZUCCHETTI_USER_<NOME>NoUtente Zucchetti per l'ambiente indicato da <NOME> (nome dell'ambiente in maiuscolo).
ZUCCHETTI_API_ID_<NOME>NoClient ID OAuth2 per ZUCCHETTI HR API dell'ambiente indicato da <NOME>.
MCP_HR_SQL_MAX_CARATTERINoTetto massimo del numero di caratteri restituiti dallo strumento query.
ZUCCHETTI_API_SECRET_<NOME>NoClient secret OAuth2 per ZUCCHETTI HR API dell'ambiente indicato da <NOME>.

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
elenco_ambientiA

Elenca gli ambienti (tenant) del registro locale: nome, descrizione, tipo di database, codice ambiente dati. Il nome va passato a "query" e "stato_sessione".

queryA

Esegue UNA SELECT su un ambiente Zucchetti e restituisce colonne e righe in JSON. Rifiuta tutto ciò che non è una SELECT singola: scritture, DDL, EXEC, SELECT INTO, più statement, commenti. Su un ambiente dati diverso da 001 i nomi delle tabelle vanno scritti con il suo codice (es. hrdd_002employee00). Filtrare sempre per IDCOMPANY e limitare le righe (TOP su SQL Server, LIMIT su PostgreSQL). Non inventare nomi di tabella o colonna: se non li conosci, cercali prima in INFORMATION_SCHEMA.TABLES e INFORMATION_SCHEMA.COLUMNS. I codici (IDCOMPANY, IDEMPLOY...) sono testo: tra apici, con tutti gli zeri (es. IDCOMPANY = '000123').

cerca_tabelleA

Trova le tabelle il cui nome contiene tutte le parole date (es. "employee", "company"), e le tabelle che hanno una COLONNA con quelle parole nel nome (es. "orari" trova le colonne TORARI_*). I nomi sono in inglese o abbreviati: prova parole corte. Usalo PRIMA di scrivere una query, poi passa a descrivi_tabella: non ripetere la stessa ricerca.

descrivi_tabellaA

Restituisce le colonne di una tabella (nome, tipo, lunghezza, null ammesso). Con "azienda" (6 cifre, es. 000123) aggiunge alcune righe di esempio di quell'azienda.

stato_sessioneA

Dice se la sessione salvata per un ambiente è ancora valida, senza eseguire query. Se non lo è, la prossima "query" rifà il login da sola.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.1/5.0

Scored across 5 tools

Disambiguation4/5

Each tool has a distinct role: elenco_ambienti discovers environments, cerca_tabelle finds table/column names, descrivi_tabella inspects a table's schema, query executes SELECTs, and stato_sessione checks session validity. The only mild overlap is between cerca_tabelle and descrivi_tabella (both schema introspection), plus the fact that INFORMATION_SCHEMA can be reached through query itself; descriptions do resolve this by prescribing an order.

Naming Consistency4/5

Names are consistently lowercase snake_case in Italian, mostly verb_noun (descrivi_tabella, cerca_tabelle) or noun_noun (elenco_ambienti, stato_sessione), which is coherent. The bare English noun 'query' is the one noticeable deviation in both language and pattern.

Tool Count5/5

Five tools is a tight, well-scoped surface for a read-only SQL exploration server: discovery, schema inspection, execution, environment listing, and session status. Every tool earns its place and nothing looks redundant.

Completeness4/5

The read-only lifecycle (find environments -> discover tables -> inspect columns -> run SELECT -> check session) is fully covered, and write operations are intentionally absent. Minor gaps: there is no dedicated 'list all tables' or paging/row-limit helper, so an agent must guess search keywords in cerca_tabelle or hand-roll INFORMATION_SCHEMA queries.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues