test_connection
Tests GaussDB datasource connectivity, returning server version, database, user, read-only status, and latency. Run before other calls to verify the datasource is reachable and read-only transactions work.
Instructions
测试 GaussDB 数据源连通性,返回服务器版本、当前数据库、用户、只读状态与连接耗时。建议在会话开始或其他工具调用前先执行,确认数据源可达且只读事务生效;也用于排查连接、凭据或超时问题。不指定 instance 时测试默认实例。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "test_connection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance | No | 数据源名称,省略时使用默认实例。可选实例:demo(默认) |