Plan a write
planPreview any write before it happens: shows the changed fields, required permissions and redacted secrets, then returns a planId a human approves and applies.
Instructions
The first step of every write; writes nothing. Prepares one write operation and shows what would change: for PUT and PATCH, the fields that change as before and after (a PUT replaces the whole resource: fields its body leaves out are listed as removed); for a creating POST, the payload validated against the body shape; for an action POST, the resource it acts on; for DELETE, the whole resource; stateKnown false when no GET reads the current state. Lists the permissions required, saves the plan and returns its planId, valid for 30 minutes. Values under secret field names (apiKey, password, token...) are redacted in the saved plan and listed in secretFields: apply needs them again in its secrets argument. Publishing a flow YAML file has its own path: plan postFlowsJobs with body { file } freezes a copy of the file and shows update or create, the diff against the published flow and which validation ran (describe postFlowsJobs). Show the plan to the human, then call apply with the planId. Refused in read-only mode.
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": "plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| operationId | Yes | The write operation id, as search and describe give it. |