call_endpoint
Execute API calls to the Swagger Petstore by specifying operation IDs and parameters, enabling interaction with endpoints discovered through list_endpoints.
Instructions
Call an endpoint in the Swagger Petstore - OpenAPI 3.0. Use list_endpoints first to discover available operationIds and their required parameters.
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": {
"operationId": "<operationId>"
},
"name": "call_endpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operationId | Yes | The operationId from list_endpoints, e.g. 'getPetById' or 'createUser' | |
| parameters | No | Path, query, and header parameters as key-value pairs | |
| body | No | Request body for POST/PUT/PATCH requests (object or string) |