Query SQL in sola lettura
queryRun a single read-only SELECT against a Zucchetti HR environment and return columns and rows as JSON for safe data inspection; non-SELECT and multi-statement requests are rejected.
Instructions
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').
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sql": "<sql>"
},
"name": "query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | Query SQL: una sola SELECT | |
| ambiente | No | Nome dell'ambiente (vuoto = default del registro) | |
| max_righe | No | Righe restituite al massimo (default 500) |