echo hello. Agents use it to interact with databases, caches, and any CLI tool running inside a container — turning natural language into actual application-level operations.
PostgreSQL — Table Size Report
An agent asked “what’s the largest table in my Postgres?” runspsql inside the container:
Redis — Memory Analysis
Chaining Queries
The agent can chain multiple queries in a single execution — check replication lag, then inspect the slowest queries:psql queries in parallel — replication lag, slowest queries, active connections, database size. All from one execute call.
Why This Matters
Database operations through traditional MCP tools would need a dedicated tool per database type —postgres-query, redis-info, mongo-stats — each with their own schema, parameters, and maintenance burden.
With exec + Code Mode, the agent writes the exact command it needs. It knows psql flags, redis-cli subcommands, and mongosh syntax from its training data. No pre-built tools required — the agent composes the right command for any database, any query.
Exec is non-interactive with a 30-second timeout. It’s ideal for read queries and diagnostics. For long-running operations or interactive sessions, use the dashboard terminal.