scrapewise_delete_customer_schema_preview
First half of the destructive-op two-call protocol per ADR-012. Mints a 5-min
`DestructiveOpToken` for the customer-schema-delete operation. The agent surfaces
the preview (including any warning about AI_CONF scrapers referencing this
schema) before committing.
Changes none of your data; each call issues a new one-time confirm token.
Args:
- id (string, path param, required): the schema's MongoDB ObjectId.
Returns:
`DestructivePreviewResponseDTO` with `token` (opaque UUID; supply to commit
within 5 min), `opName`, `targetEntityId`, and `previewSummary`.
Examples:
- Use when: agent intends to delete a schema and wants the user to confirm —
preview, render the summary, then commit on approval.
- Use when: cleaning up after migrating scrapers to a new schema version —
the preview is the audit point before the irreversible delete.
- Don't use when: you only want to read the schema → use
`scrapewise_list_customer_schema`.
- 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_customer_schema_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | the schema's MongoDB ObjectId. |