Call API
call_apiInvoke any API operation from your OpenAPI spec by specifying the spec path and operation ID, with support for parameters and body.
Instructions
Invoke an operation defined in an 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": {
"specPath": "<specPath>",
"operationId": "<operationId>"
},
"name": "call_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| specPath | Yes | ||
| operationId | Yes | ||
| pathParams | No | ||
| queryParams | No | ||
| body | No | ||
| headers | No |