Run a read operation
executeRun read-only Centrex operations and get parsed responses, including paginated, job-style and composite reads; write operations are refused—use plan then apply.
Instructions
Runs one read and returns the parsed response: a GET, a query POST, a job-style read (an analytics, audit or usage query job, which it submits, polls and fetches in one call) or a composite operation. Write operations (PUT, PATCH, DELETE and every other POST) are refused: use plan, then apply. A listing returns one page with a pagination note saying how to ask for more; allPages reads every page up to maxItems. A response larger than maxInlineBytes is saved to a file in the org's responses folder and summarized. A job still running at jobTimeoutMs comes back with job.status 'pending': call execute again with its jobId to keep waiting instead of submitting it again. An analytics body interval that ends in the future is clamped to now before it is sent; the result's notes say so. One POST is run as a read although it is not a query POST: postFlowsExportJobs exports one flow as YAML to a file in the org's flows folder and returns the file path (describe it for its body).
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": "execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | No | Job-style reads: the id of a job submitted before, to keep waiting for it instead of submitting a new one. | |
| params | No | The call's values as describe lists them: path parameters, query parameters and the JSON body. A composite operation takes its inputs in query. | |
| allPages | No | Read every page of a listing (page number or cursor style), up to maxItems. | |
| maxItems | No | Cap of elements collected by allPages (default 1000, and at most 1000). | |
| timeoutMs | No | Longest wait for one answer, in milliseconds (default 30000). | |
| operationId | Yes | The operation id or composite operation id, as search and describe give it. | |
| jobTimeoutMs | No | Job-style reads: longest wait from submit to completion, in milliseconds, before the job id comes back to resume (default 120000). | |
| maxInlineBytes | No | Largest response, in bytes of JSON, returned inline; larger ones are saved to a file (default 20480). | |
| pollIntervalMs | No | Job-style reads: wait between two polls of the job's state, in milliseconds (default 2000). |