DoubleX AgentesDocs

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.

Terminal
doublex mcp list | get | tools | call

List#

Terminal
doublex mcp list
ID                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:

Terminal
doublex mcp tools gmail
NAME           READ-ONLY  DESCRIPTION
search_emails  yes        Searches emails using Gmail syntax
read_email     yes        Reads a full email
send_email     no         Sends an email

The 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#

Terminal
doublex mcp call gmail search_emails --args-json '{"query": "is:unread newer_than:1d", "max_results": 5}'
OptionWhat 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.
--jsonReturns { "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 scopeWho uses it
PersonalOnly the person who connected it.
TeamMembers of the team.
OrganizationEveryone 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:

ToolWhat it does
list_tablesLists the tables.
describe_tableShows a table's columns.
queryRuns a read query (SELECT, WITH, SHOW, EXPLAIN) in a read-only transaction, for up to 20 seconds. Arguments: sql and limit (optional).
executeRuns a statement that changes data. Only exists when the connection was created with writes enabled.
Terminal
doublex mcp call "BI Database" query --args-json '{"sql": "select status, count(*) from orders group by status"}'