Read a service datasource's connection
get_datasource_connectionRead what a service datasource's credential page holds, by name and never by value: its status, the credentials it declared with present true, false, or null where this read could not list the names at all — a per-user connection's own values, or a shared connection whose listing failed right now (credential_presence is then "unknown" and missing_required does not name them), any names present that were not declared, and what happens next. credential_mode and credential_mode_basis say how its credential is held — per_user, or shared with every user — and shared_approved_by and shared_approved_at are null unless an Administrator approved the sharing; shared_approved_by is also null unless you are an Administrator. Use it to tell the person which credentials the page still lacks, or to learn that setup completed. For Custom OAuth connections, auth echoes the resource and optional scopes; authorization_server is null until discovery. The Administrator must sign in on the hosted credential page, with no pasted token. Ready or failed OAuth connections re-link in place through request_connection_link (reconnect: true when ready), keeping any published module and the serving grant until sign-in succeeds. For a catalogue card, an Administrator's read that finds it connected with nothing bound is also the read that publishes the card's connector without creating pending Requests. The answer's connector block reports the version bound; choose operations on the Requests page, then review and approve the chosen Requests. That read can therefore take up to about a minute; if your client times out, read again rather than giving up, because the publish carries on without you and a later read finds the version bound. A custom datasource is ready for publish_module_version instead. "Let your AI agent build and test this connection" starts on; describe_project reports when it is off, and publishing or trial runs are refused with datasource_artifact_authority_not_granted until an Administrator turns it on in this datasource's Setup step.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"datasource_id": "<datasource_id>"
},
"name": "get_datasource_connection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| datasource_id | Yes | The service datasource (UUID) |