{"uid":"cap_ACCc4NyhZjIayWcATThHK","slug":"irantools-human-bytes-formatter-c4c8ef05","name":"IranTools Human Bytes Formatter","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/human_bytes?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["bytes"],"properties":{"bytes":{"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_-fnzmAbq9pZaww9awaJ9N","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":"Converts a raw byte count (as string) into a human-readable file size string (e.g. '1.5 MB')","exampleAgentPrompt":"Can you convert 1073741824 bytes into a human-readable file size like '1 GB'?","exampleUseCases":[{"title":"Display upload limit to user","prompt":"I need to show users that the max upload size is 5368709120 bytes — can you convert that to a readable format like '5 GB' so it makes sense on the UI?"},{"title":"Format downloaded file size in report","prompt":"Our system downloaded a file that's 2097152 bytes. Can you format that as a human-readable size so I can include it in the summary report?"},{"title":"Show database storage usage","prompt":"The database is using 10737418240 bytes of storage — what does that look like in a human-friendly format like gigabytes?"}],"resultDescription":"Returns a human-readable file size string representing the input byte count, such as '1.5 MB', '2 GB', or '512 KB', formatted for display to end users.","failureModes":["Missing required 'bytes' field returns validation error","Non-numeric string in 'bytes' field may cause parsing failure","Extremely large numbers may produce unexpected formatting","Payment failure (x402) blocks call if USDC balance is insufficient"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-call byte formatting utility with no API key or signup, especially within pipelines already using the IranTools suite for Persian/Iranian data utilities. Suitable for lightweight formatting needs within serverless or agent workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:41:23.841Z","isFirstParty":false,"canonicalSlug":"irantools-human-bytes-formatter-c4c8ef05"}