invoke_api_endpoint
Use this only after inspecting an endpoint schema to invoke a Telnyx API operation. It may create, update, or delete data and returns the API result.
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": {
"endpoint_name": "<endpoint_name>",
"args": "<args>"
},
"name": "invoke_api_endpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes | The arguments to pass to the endpoint. This must match the schema returned by the `get_api_endpoint_schema` tool. | |
| endpoint_name | Yes | The name of the endpoint to invoke. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | ||
| isError | Yes | ||
| endpointName | Yes |