apex_execute
Call Apex REST endpoints using HTTP methods like GET, POST, or PATCH, with optional data payload.
Instructions
Executes an Apex REST request. Args: action: The Apex REST endpoint to call (e.g., '/MyApexClass') method: The HTTP method (default: 'GET') data: Data for POST/PATCH requests
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": {
"action": "<action>"
},
"name": "apex_execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| method | No | GET | |
| data | No |