add_jdbc_connection_configuration
Add a JDBC connection pool to a JMeter test plan. Define driver, URL, credentials, and pool limits; JDBC Request samplers reference the pool by dataSource name.
Instructions
Add a JDBC Connection Configuration (pooled datasource) under the given parent, usually the Thread Group or TestPlan root. A JDBC Request references this element's dataSource name.
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": {
"planId": "<planId>",
"parentId": "<parentId>",
"dataSource": "<dataSource>",
"dbUrl": "<dbUrl>",
"driver": "<driver>"
},
"name": "add_jdbc_connection_configuration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | JDBC Connection Configuration | |
| dbUrl | Yes | JDBC URL, e.g. jdbc:postgresql://host:5432/dbname | |
| driver | Yes | JDBC driver class, e.g. org.postgresql.Driver | |
| planId | Yes | ||
| poolMax | No | Max pool size, 0 = unlimited | |
| timeout | No | ||
| parentId | Yes | ||
| password | No | ||
| username | No | ||
| checkQuery | No | ||
| dataSource | Yes | Pool name that JDBC Request samplers will reference | |
| trimInterval | No | ||
| connectionAge | No |