Test a connection
test_connectionTests one of a project's saved connections now, by asking the service the same cheapest "does this sign-in work" question CodeGene's own checks ask; nothing is sent, written or changed at the service. Answers works: true with the account it signed in as, or works: false with the problem and, when a database could not be reached (an allow list, a private address, a closed port, a wrong address), guide: what happened, why, and the steps for that database's host, simplest first. Read the guide's options to the person in its own words. A guide that offers a private network can be followed with add_private_network. A sign-in the service refuses is recorded on the connection, as any use of it would be.
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": {
"project_id": "<project_id>",
"connection_id": "<connection_id>"
},
"name": "test_connection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | The project (list_projects gives ids). | |
| workspace_id | No | Workspace id from whoami; omit when there is one. | |
| connection_id | Yes | The connection (list_connections gives ids). |