generate_test_cases
Generate comprehensive API test cases from OpenAPI specs, covering positive, negative, boundary, auth, security, idempotency, pagination, and business logic scenarios for specific endpoints.
Instructions
Generate QA test cases for a specific API endpoint. Produces positive, negative, boundary, auth, security, idempotency, pagination, and business logic test cases based on the OpenAPI spec.
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": {
"source": "<source>",
"path": "<path>",
"method": "<method>"
},
"name": "generate_test_cases"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Swagger/OpenAPI spec source: URL (https://...) or local file path (/path/to/spec.json, ./spec.yaml) | |
| path | Yes | Endpoint path, e.g. /api/orders | |
| method | Yes | HTTP method | |
| auth_header | No | Authorization header value, e.g. "Bearer eyJ..." or "Basic dXNlcjpwYXNz" | |
| headers | No | Additional HTTP headers as key-value pairs, e.g. {"X-API-Key": "abc123"} | |
| config | No | Generation configuration options |