Wire Gmail and Postgres into OpenCode and it can run queries against your database and email the results, or take what arrives in the inbox and write it into a table. It reads emails, runs SQL you let it run, and sends formatted reports built from query output. The pairing turns the agent into a self-serve reporting and intake layer over your database without a dashboard in between.
Pick the operations you want and each becomes a tool the agent can call directly while it works.
Configuration for sending an email
Configuration for reading emails from inbox
Configuration for getting a specific message
Configuration for permanently deleting a message
Configuration for moving a message to trash
Configuration for removing a message from trash
Configuration for modifying message labels
Configuration for replying to an email
Configuration for forwarding an email
Configuration for creating a draft
Configuration for listing drafts
Configuration for getting a specific draft
Configuration for updating a draft
Configuration for deleting a draft
Configuration for sending a draft
Configuration for listing all labels
Configuration for creating a label
Configuration for getting a label
Configuration for updating a label
Configuration for deleting a label
Configuration for listing threads
Configuration for getting a specific thread
Configuration for moving a thread to trash
Configuration for restoring a thread from trash
Configuration for modifying thread labels
Configuration for permanently deleting a thread
Configuration for getting user profile
Execute a SELECT query and return results as JSON
Execute an INSERT, UPDATE, DELETE, or other non-SELECT statement
Execute a statement with multiple parameter sets (batch operations)
Execute query with cursor for large result sets
Bulk import data to a table using COPY
Bulk export data from a table using COPY
List all tables in a schema
Get column metadata for a table
Get detailed information about a table including constraints and indexes
Create a new table
Drop a table
Truncate a table (remove all rows)
List all schemas in the database
Create a new schema
Drop a schema
List all databases in the PostgreSQL server
List all indexes in a schema
Create an index on a table
Drop an index
List all views in a schema
Create a view
Drop a view
List all sequences in a schema
Get the next value from a sequence (nextval)
Get the current value from a sequence (currval)
Set the current value of a sequence (setval)
List all functions in a schema
Call a PostgreSQL function
List all constraints for a table
List all triggers in a schema
List all installed extensions
Create/install an extension
List all database users
List all database roles
Explain a query's execution plan
Vacuum a table to reclaim storage and update statistics
Analyze a table to update statistics
Begin a new transaction
Commit the current transaction
Rollback the current transaction
OpenCode is an open, model-agnostic command-line coding agent. In NoClick it runs hosted and gains your apps as tools, so it can act on real systems rather than just edit files. Wire an integration into the agent and OpenCode can use that app’s operations directly while it works. It is a flexible choice when you want an open agent with broad model support and real tool access.
NoClick runs OpenCode for you with Gmail and PostgreSQL wired in as tools. Connect your account and run.