scrapewise_preview_reapply_rules
Runs the scraper's CURRENT post-scrape rules (its own rules, then its group's rules, plus constant
columns) on the first stored rows of one finished run IN MEMORY and answers what a re-apply would
change. Writes nothing. Free (no credits).
Args:
- jobId (string, path, required): the run's id (scraperJobStatusId) — from
scrapewise_get_scraper_load_history.
Returns:
rulesHash (pass it to scrapewise_run_reapply_rules as expectedRulesHash), rowsTotal, scannedRows,
changedRows, scanCapped (true when only the first rows were read), per column {added, updated,
keptStale}, frozenColumns (currency-conversion outputs, never re-computed), failureRowsSkipped and
up to 20 before/after examples.
Examples:
- Use when: "I changed the cleaning rules — what would change on run {jobId}?"
- Don't use when: you want to write the values → scrapewise_run_reapply_rules.
Error Handling:
- 400 (CustomerError) when the run does not exist for this customer or has no data.
- 409 when the run is not finished yet.
- 429 when a preview is already running; try again in a moment.
- 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": {
"jobId": "<jobId>"
},
"name": "scrapewise_preview_reapply_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | Yes |