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, checking replication lag and then inspecting 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.
Related topics
Full-stack dashboard in minutes
Combine database exec queries with cluster health in one dashboard.
Kubernetes access
The exec endpoint request and response shape.
Incident debugging
Adaptive SRE triage using pod health, events, and logs.
Code Mode in action
How agents chain multiple operations in one call.