MCP directory
L

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

PyPI

Run it locally

Install the package and point your AI client at it.

PyPI

uvx lagaam==1.0.0

Environment variables

  • LAGAAM_ALLOWED_TABLESrequired

    Comma list of catalog.schema.table grants; the server will not start without it

  • LAGAAM_ALLOW_ALL_TABLES

    true to run with no grant at all: an explicit opt-out, off by default

  • LAGAAM_ENGINE

    Which adapter to run

  • TRINO_HOST

    Trino coordinator host

  • TRINO_PORT

    Trino coordinator port

  • TRINO_USER

    Trino user

  • TRINO_PASSWORDsecret

    Password for TRINO_USER; unset means no login. Not with TRINO_JWT

  • TRINO_JWTsecret

    JWT to log in with instead of a password; unset means no login

  • TRINO_HTTP_SCHEME

    http or https; unset means https once a password or JWT is set, else http

  • TRINO_VERIFY

    TLS cert check: true, false, or the path of a CA bundle (PEM)

  • PINOT_CONTROLLER_URL

    Pinot controller URL

  • PINOT_BROKER_URL

    Pinot broker URL

  • PINOT_USER

    Pinot user; unset means no auth

  • PINOT_PASSWORDsecret

    Pinot password; unset means no auth

  • LAGAAM_AGENT_NAME

    Identity stamped on the audit trail

  • LAGAAM_MAX_SCAN_BYTES

    Scan-bytes budget per query, checked before it runs (default 50 GiB)

  • LAGAAM_MAX_ROWS

    Scanned-row estimate budget per query; unset means ungated

  • LAGAAM_MAX_INTERMEDIATE_ROWS

    Rows the engine would build at its widest step, not rows returned, so a LIMIT doesn't lower it

  • LAGAAM_MAX_RETURNED_ROWS

    Rows returned to the agent per query, capped at 100000; a bigger LIMIT in the query is lowered to it

  • LAGAAM_QUERY_TIMEOUT

    Wall-clock seconds per query

  • LAGAAM_METADATA_TTL

    Metadata cache TTL, seconds

  • LAGAAM_AUDIT_LOG

    Audit JSONL file path; unset means stderr

More MCP servers