Create datasource connection
create_connectionCreate a datasource connection from credentials — the connect panel's credential form, as a tool. Call it with just datasource_id to be told which fields that datasource needs, then again with those values and a name. Re-using an existing name updates that connection's credentials. Only for datasources that are connected by credentials; the ones that sign in through the vendor's website (Google, Meta, LinkedIn…) cannot be created here and say so. Use link_datasource afterwards to point a client at the new connection, and test_connection to check it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | What to call this connection, e.g. "Client Stripe". Shown wherever connections are listed | |
| credentials | No | The credential values, keyed as the tool lists them. Omit to see the list | |
| datasource_id | Yes | Datasource alias (from datasources) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Either the credential fields this datasource needs (when called without them), or the connection that was created — its id and name. Link it to a client with link_datasource. | |
| success | Yes | True when the call succeeded. A failure comes back as an error result instead. |