run_contract_test
Run contract tests against an API by providing an OpenAPI specification and base URL. Validate API behavior automatically.
Instructions
Run Specmatic contract tests against an API using OpenAPI specification
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": {
"openApiSpec": "<openApiSpec>",
"apiBaseUrl": "<apiBaseUrl>"
},
"name": "run_contract_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| openApiSpec | Yes | The OpenAPI specification content (YAML or JSON) | |
| apiBaseUrl | Yes | The base URL of the API to test against | |
| specFormat | No | Format of the OpenAPI spec | yaml |