Lagaam
by github.com/lagaam-ai · v1.0.0 · updated Nov 6, 2026
Stops an agent's Trino or Pinot query before it runs if it costs too much or reads outside its grant
Run it locally
Install the package and point your AI client at it.
PyPI
uvx lagaam==1.0.0Environment variables
LAGAAM_ALLOWED_TABLESrequiredComma list of catalog.schema.table grants; the server will not start without it
LAGAAM_ALLOW_ALL_TABLEStrue to run with no grant at all: an explicit opt-out, off by default
LAGAAM_ENGINEWhich adapter to run
TRINO_HOSTTrino coordinator host
TRINO_PORTTrino coordinator port
TRINO_USERTrino user
TRINO_PASSWORDsecretPassword for TRINO_USER; unset means no login. Not with TRINO_JWT
TRINO_JWTsecretJWT to log in with instead of a password; unset means no login
TRINO_HTTP_SCHEMEhttp or https; unset means https once a password or JWT is set, else http
TRINO_VERIFYTLS cert check: true, false, or the path of a CA bundle (PEM)
PINOT_CONTROLLER_URLPinot controller URL
PINOT_BROKER_URLPinot broker URL
PINOT_USERPinot user; unset means no auth
PINOT_PASSWORDsecretPinot password; unset means no auth
LAGAAM_AGENT_NAMEIdentity stamped on the audit trail
LAGAAM_MAX_SCAN_BYTESScan-bytes budget per query, checked before it runs (default 50 GiB)
LAGAAM_MAX_ROWSScanned-row estimate budget per query; unset means ungated
LAGAAM_MAX_INTERMEDIATE_ROWSRows the engine would build at its widest step, not rows returned, so a LIMIT doesn't lower it
LAGAAM_MAX_RETURNED_ROWSRows returned to the agent per query, capped at 100000; a bigger LIMIT in the query is lowered to it
LAGAAM_QUERY_TIMEOUTWall-clock seconds per query
LAGAAM_METADATA_TTLMetadata cache TTL, seconds
LAGAAM_AUDIT_LOGAudit JSONL file path; unset means stderr
More MCP servers
Bitbucket Mcp
github.com/lahma
Bitbucket Cloud pull requests and Pipelines: review, comment, merge, and diagnose failed builds.
Claude Roslyn Lsp
github.com/lahma
C# semantic rename, code actions, fix-all, formatting and diagnostics via Microsoft's Roslyn server
Sonarqube Mcp
github.com/lahma
SonarQube Cloud over MCP: quality gates, issues, hotspots, measures, coverage and issue triage.
ScholarFetch
github.com/laibniz
Multi-engine scholarly research server for search, traversal, full text, and reading lists.
looktap
github.com/lakpriya1s
Let your AI agent see, use and control the apps on your phone: screen as text, tap by label.
Distill Mcp
github.com/lakshgk
Convert PDF, DOCX, XLSX, PPTX, HTML, audio to token-efficient Markdown for any MCP client.