CLI › Commands
Connectors
List your connectors, discover each one's tools and run them straight from the terminal.
Connectors link the platform to your apps: Gmail, Google Calendar, Drive, Sheets, Slack, HubSpot, Notion, GitHub, databases and MCP servers. The CLI's mcp group uses the same connections as the agents, with your permissions.
doublex mcp list | get | tools | callList#
doublex mcp listID NAME CATALOG STATUS SCOPE TOOLS ACCOUNT
con_7a9b1c3d5e2f Gmail gmail connected personal 9 [email protected]
con_1f3e5d7c9b2a HubSpot hubspot connected team 24 Empresa SA
con_4b6d8f0a2c3e BI Database postgres connected team 3 [email protected]The STATUS column shows connected, needs_auth (needs to be reconnected on the Connectors page) or error.
View the tools#
In every command, <connector> accepts the ID, the catalog ID (for example, gmail) or the name:
doublex mcp tools gmailNAME READ-ONLY DESCRIPTION
search_emails yes Searches emails using Gmail syntax
read_email yes Reads a full email
send_email no Sends an emailThe READ-ONLY column tells you whether the tool only reads (yes) or changes something in the app (no). Each tool's description explains the arguments it accepts.
doublex mcp get <connector> shows the connection's details: catalog, account, scope, status and last error.
Run a tool#
doublex mcp call gmail search_emails --args-json '{"query": "is:unread newer_than:1d", "max_results": 5}'| Option | What it's for |
|---|---|
--args-json <json> | The tool's arguments, as JSON. |
--args-file <file> | Reads the arguments from a JSON file. |
--args - | Reads the arguments from stdin. |
--json | Returns { "text": "...", "isError": false }. |
The CLI shows the text the tool returned (up to 20,000 characters). If the tool itself reports an error, the command exits with code 1.
Who can use each connection#
| Connection scope | Who uses it |
|---|---|
| Personal | Only the person who connected it. |
| Team | Members of the team. |
| Organization | Everyone in the organization. |
Someone else's personal connection is never used on your behalf, not even by admins. If the tool needs your account, connect the app on the Connectors page.
Databases#
PostgreSQL and MySQL connectors have four tools:
| Tool | What it does |
|---|---|
list_tables | Lists the tables. |
describe_table | Shows a table's columns. |
query | Runs a read query (SELECT, WITH, SHOW, EXPLAIN) in a read-only transaction, for up to 20 seconds. Arguments: sql and limit (optional). |
execute | Runs a statement that changes data. Only exists when the connection was created with writes enabled. |
doublex mcp call "BI Database" query --args-json '{"sql": "select status, count(*) from orders group by status"}'