scrapewise_delete_scraper_group_preview
First half of the destructive-op two-call protocol per ADR-012. Mints a 5-min
`DestructiveOpToken` for the group-delete operation, returning it alongside a
human-readable preview the agent surfaces to the user before committing.
Changes none of your data; each call issues a new one-time confirm token.
Args:
- id (string, path param, required): the group's MongoDB ObjectId.
- withData (boolean, query param, optional, default false): same semantics as
`scrapewise_delete_scraper_group.withData` — included so the preview's args
hash covers the destructive-args shape.
Returns:
`DestructivePreviewResponseDTO` with `token` (opaque UUID; supply to commit
within 5 min), `opName`, `targetEntityId`, and `previewSummary` (entity type,
cascade-row counts, warnings).
Examples:
- Use when: agent intends to delete a group and wants user confirmation first
— render the summary, only proceed to `scrapewise_delete_scraper_group`
with the token on approval.
- Use when: `withData=true` — the preview's `warnings` array surfaces the
irreversible-data-loss warning the user must see before committing.
- Don't use when: read-only inspection → use `scrapewise_get_scraper_group_list`.
- Don't use when: you've already previewed this op in the session → re-use
the existing token within its 5-min TTL.
Error Handling:
- 401 Unauthorized.
- 500 INTERNAL.[runtime hint] This tool returns JSON-as-text — its response shape is dynamic (per-scraper itemsConfig, file binary, etc.) so the MCP outputSchema is omitted. Do not rely on the presence of any specific field in the response; treat the result as a string-or-object blob and parse defensively.
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": {
"id": "<id>"
},
"name": "scrapewise_delete_scraper_group_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | the group's MongoDB ObjectId. | |
| withData | No | same semantics as `scrapewise_delete_scraper_group.withData` — included so the preview's args hash covers the destructive-args shape. |