api_call
Executes cataloged storefront API operations by ID or method and path, checks required keys, and dry-runs writes so you can preview requests 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. 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/v1/dashboard/site/:site_id/product_tags/all | |
| 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 | |
| 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; site_id defaults to the current site |