test_api_endpoint
Send an HTTP request to verify an API endpoint's response status, data, and timing, optionally assert an expected status code.
Instructions
Execute an API request and test an endpoint with optional validation. Returns response status, data, timing, and validation results.
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": {
"method": "<method>",
"url": "<url>"
},
"name": "test_api_endpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full URL to test | |
| body | No | Optional request body (for POST, PUT, PATCH) | |
| method | Yes | HTTP method | |
| params | No | Optional query parameters | |
| headers | No | Optional HTTP headers | |
| timeout | No | Request timeout in milliseconds (default: 30000) | |
| expectedStatus | No | Expected HTTP status code for validation |