{"uid":"cap_f7hFbAbP2n4nv4EJV99Oc","slug":"irantools-rtl-fixer-c35b4eb8","name":"IranTools RTL Fixer","description":"Persian and Iranian utilities for AI agents, plus general text/Unicode tooling. Jalali (Solar Hijri) calendar conversion, Iranian national ID / SHEBA / bank card / postal code / economic code validation, province and city lookup, official public holidays, Persian text normalization, keyword extraction, sentence splitting, similarity, HTML stripping, RTL fixing, Unicode homoglyph folding, script detection, NFC/NFD normalization, grapheme counting, date description, business-day counting, slugify, FNV-1a hashing, Shannon entropy, format and encoding detection, byte sizes. Pay per call in USDC on Base via x402 - no signup, no API key, no KYC. The same tools are also exposed as MCP tools at /mcp.","url":"https://irantools.johnaio281.workers.dev/api/iran/fix_rtl?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["text"],"properties":{"text":{"type":"string"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_tsKphQTDobZLtM8yYTn-j","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fixes right-to-left (RTL) text directionality issues in Persian/Arabic strings, ensuring proper Unicode bidirectional rendering.","exampleAgentPrompt":"Fix the RTL direction issues in this Persian text so it renders correctly: 'متن فارسی با مشکل راست‌به‌چپ'","exampleUseCases":[{"title":"Fix Persian UI text rendering","prompt":"I have this Persian string pulled from our database that's displaying backwards in the browser — can you fix the RTL direction so it renders properly: 'سلام دنیا این یک متن آزمایشی است'?"},{"title":"Repair Farsi content from scraped data","prompt":"I scraped some Farsi news content but the text direction is all messed up and bidi control characters are wrong — please fix the RTL issues in this text: 'اخبار روز ایران و جهان را اینجا بخوانید'"},{"title":"Normalize RTL before publishing","prompt":"Before I publish this Persian article to the website, can you run the RTL fixer on this paragraph to make sure the bidirectional text will display correctly for readers: 'این مقاله درباره فناوری هوش مصنوعی در ایران است'?"}],"resultDescription":"Returns a JSON object containing the RTL-fixed version of the input text, with corrected Unicode bidirectional control characters and proper right-to-left text directionality applied, suitable for rendering in web or app interfaces.","failureModes":["Missing required 'text' field returns 400 validation error","Empty string input may return unchanged empty string","Extremely long strings may hit Cloudflare Worker memory or timeout limits","Non-Persian/Arabic Latin-only text is returned unchanged or with no meaningful transformation","Payment failure (insufficient USDC balance) results in 402 response blocking the call"],"whenToPreferThis":"Choose this endpoint when you need to fix RTL directionality issues specifically in Persian or Arabic text — particularly when text scraped from the web, imported from databases, or pasted by users has malformed or missing bidi control characters. It pairs well with other IranTools endpoints for a full Persian text normalization pipeline. Prefer this over manual Unicode bidi insertion when you want a reliable, language-aware correction without building your own Unicode bidirectional algorithm.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:40:34.152Z","isFirstParty":false,"canonicalSlug":"irantools-rtl-fixer-c35b4eb8"}