{"uid":"cap_RR96yHibsAu51zTsrY3_f","slug":"writerslogic-locale-aware-number-money-string-parser-05138c42","name":"WritersLogic Locale-Aware Number & Money String Parser","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/locale-number?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","required":["text"],"properties":{"text":{"type":"string","maxLength":64,"minLength":1},"locale":{"type":"string","pattern":"^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8}){0,3}$","maxLength":35,"description":"BCP 47 tag whose CLDR separators apply, e.g. de-DE, en-IN, de-CH."},"currency":{"type":"string","pattern":"^[A-Z]{3}$","description":"Expected currency; resolves an ambiguous symbol and fails a contradicting one."}},"additionalProperties":false},"maxItems":100,"minItems":1}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bNDo5P1ZLWS_jzsmPAe0N","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses up to 100 locale-aware number or money strings into canonical decimal representations, handling ambiguous separators, currency symbols, and non-ASCII digit systems.","exampleAgentPrompt":"Parse these price strings from our German supplier's invoice into clean decimal numbers — they're formatted like '1.234,56' and '(500,00)' — use locale de-DE and treat the currency as EUR.","exampleUseCases":[{"title":"Normalize invoice amounts from EU supplier","prompt":"I have a batch of amounts from a French invoice — things like '1 234,56 €' and '(200,00)' — can you parse them all into plain decimals using locale fr-FR and currency EUR?"},{"title":"Disambiguate mixed-locale price table","prompt":"These price strings came from a spreadsheet with no locale info: '1,234', '10.5', '1.000,50' — parse each one and tell me all valid readings where it's ambiguous rather than guessing."},{"title":"Extract totals from Japanese e-commerce data","prompt":"Pull the numeric values out of these yen price strings — '￥1,000', '￥12,500', '¥999' — using locale ja-JP and currency JPY so the yen sign doesn't come back as ambiguous."}],"resultDescription":"For each input string, the agent receives a canonical decimal string (e.g. '1234.56') when unambiguous, or an 'unknown' status with the full list of valid numeric readings when the string is ambiguous without a locale. Currency symbol ambiguity (e.g. $ or ¥ shared by multiple currencies) is flagged unless resolved by the caller-supplied currency code. No rounding or currency conversion is applied.","failureModes":["Locale tag does not match a known CLDR locale — parsing falls back to ambiguous mode","Currency code contradicts the symbol in the string — item fails with contradiction error","Input string exceeds 64 characters — rejected with validation error","Batch exceeds 100 items — rejected with schema error","String contains a digit system not supported — may return unknown or error","Non-BCP-47 locale pattern — rejected by schema regex"],"whenToPreferThis":"Choose this endpoint when you need to reliably parse number or money strings from real-world documents, emails, or tables that use locale-specific formatting (European comma-as-decimal, Swiss apostrophe, Indian lakh grouping, accounting parentheses, non-ASCII digits). It is preferable to a generic regex or LLM guess because it uses CLDR authoritative separator rules per locale and explicitly surfaces ambiguity rather than silently guessing — critical for financial correctness. Use it over a currency-conversion API when you only need normalization of the numeric value, not FX conversion.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:38:07.331Z","isFirstParty":false,"canonicalSlug":"writerslogic-locale-aware-number-money-string-parser-05138c42"}