Mechanical Pass
mechanical_passFix Persian text mechanical errors like Arabic characters, punctuation, and spacing, then verify no issues remain. Returns remaining problems and a clean flag for use as a first or final editing step.
Instructions
Deterministic mechanical fix + verification gate for Persian text.
Fixes what needs no judgment (Arabic ي/ك, Latin , ; ? %, straight quotes,
ZWNJ on می/نمی, spacing) and proves the result: remaining lists any
mechanical issue left, clean is true only when none remain. Use it as
the first step (so the LLM works on a clean base) and as the final gate
(so nothing ships with mechanical errors). Ambiguous cases (em/en dashes)
are flagged in remaining, never guessed.
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": {
"text": "<text>"
},
"name": "mechanical_pass"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||