api_call
Execute any WebCake API operation by id, including GET, POST, PUT, PATCH, and DELETE requests. Writes default to dry_run:true so you can show the exact payload before sending.
Instructions
Run any operation from api_find by id (GET, POST, PUT, PATCH, DELETE). Writes default to dry_run:true and return exactly what would be sent — show the user, then repeat with dry_run:false. Refuses writes to routes a dedicated tool owns (it names the tool) and irreversible account operations (page/domain deletion, org members/roles/transfers, permissions, billing, credentials). Required keys are checked against the call sheet before sending.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "api_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Operation id from api_find (preferred) | |
| body | No | JSON body for POST/PUT/PATCH/DELETE (keys from the call sheet) | |
| path | No | Catalog path with :params, e.g. /api/datasets/records | |
| pick | No | Keep only these fields on each item of a list result (or on a single object) | |
| query | No | Query-string values | |
| method | No | With path, when id is not given | |
| org_id | No | Organization sent as x-org-id ('personal' = none); default: the configured org. Many routes need it. | |
| dry_run | No | Default true for writes: describe, don't send | |
| max_items | No | Cap list results (default 50) | |
| path_params | No | Values for :params in the path (page_id, org_id…); org_id defaults to the selected organization |