mcp-hr-sql-readonly
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| ZUCCHETTI_PASS | No | Password Zucchetti valida per gli ambienti senza credenziali proprie. | |
| ZUCCHETTI_USER | No | Utente Zucchetti valido per gli ambienti senza credenziali proprie. | |
| MCP_HR_SQL_HOME | No | Cartella di registro, .env e sessioni (default ~/.mcp_hr_sql_readonly/). | |
| MCP_HR_SQL_CONFIG | No | Percorso alternativo del registro degli ambienti. | |
| MCP_HR_SQL_ENV_FILE | No | Percorso alternativo del file .env. | |
| MCP_HR_SQL_TEMPLATE | No | Percorso alternativo del file dei query template (default ~/.mcp_hr_sql_readonly/query_template.json). | |
| MCP_HR_SQL_MAX_RIGHE | No | Tetto massimo del numero di righe restituite dallo strumento query. | |
| ZUCCHETTI_PASS_<NOME> | No | Password Zucchetti per l'ambiente indicato da <NOME> (nome dell'ambiente in maiuscolo). | |
| ZUCCHETTI_USER_<NOME> | No | Utente Zucchetti per l'ambiente indicato da <NOME> (nome dell'ambiente in maiuscolo). | |
| ZUCCHETTI_API_ID_<NOME> | No | Client ID OAuth2 per ZUCCHETTI HR API dell'ambiente indicato da <NOME>. | |
| MCP_HR_SQL_MAX_CARATTERI | No | Tetto massimo del numero di caratteri restituiti dallo strumento query. | |
| ZUCCHETTI_API_SECRET_<NOME> | No | Client 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
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
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.
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.
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.
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.