{"uid":"cap_pEuUQs9RNzEfwzjHTPjSB","slug":"writerslogic-unit-converter-f4750390","name":"WritersLogic Unit Converter","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/unit-convert?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","required":["value","from","to"],"properties":{"to":{"type":"string","maxLength":80,"description":"Target unit expression."},"from":{"type":"string","maxLength":80,"description":"Unit expression: symbols, SI prefixes, * / ^ and parentheses, e.g. m/s^2, kg*m/s2, degF, cup_us, lb/ft3. Bare cup/tbsp/tsp/gal/pt/qt/floz/cal/hp/ton are ambiguous and answer unknown with the candidates."},"kind":{"enum":["absolute","difference"],"type":"string","description":"absolute (default): a temperature reading, converted affinely through kelvin. difference: a temperature interval, converted linearly."},"label":{"type":"string","maxLength":80,"description":"Free label echoed back."},"value":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^-?\\d{1,30}(\\.\\d{1,30})?([eE][+-]?\\d{1,3})?$","maxLength":50}],"description":"A finite number, or a decimal string when the digits must stay exact (\"236.5882365\"). Magnitude at most 1e15."},"claimed":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^-?\\d{1,30}(\\.\\d{1,30})?([eE][+-]?\\d{1,3})?$","maxLength":50}],"description":"Optional claimed result in the target unit; a mismatch beyond relTolerance fails with expected vs actual."},"density":{"type":"object","required":["value","unit"],"properties":{"unit":{"type":"string","maxLength":40,"description":"Mass per volume unit expression, e.g. g/mL, kg/m3, lb/ft3, oz/cup_us."},"value":{"type":"number","maximum":1000000000,"minimum":1e-9,"description":"Caller-supplied mass per volume. Never looked up: no ingredient density table is shipped."}},"description":"Per-item density, overriding the top-level one. Required to cross mass and volume (cups to grams).","additionalProperties":false},"relTolerance":{"type":"number","maximum":1,"minimum":0,"description":"Relative tolerance for claimed. Default 1e-9."}},"additionalProperties":false},"maxItems":100,"minItems":1,"description":"Conversions to run."},"density":{"type":"object","required":["value","unit"],"properties":{"unit":{"type":"string","maxLength":40,"description":"Mass per volume unit expression, e.g. g/mL, kg/m3, lb/ft3, oz/cup_us."},"value":{"type":"number","maximum":1000000000,"minimum":1e-9,"description":"Caller-supplied mass per volume. Never looked up: no ingredient density table is shipped."}},"description":"Default density for items that cross mass and volume.","additionalProperties":false},"precision":{"type":"integer","maximum":30,"minimum":1,"description":"Significant digits of the reported value. Default 12."}}},"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_y1APlSpEvqt3sE91y4sSX","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":"Converts up to 100 physical unit expressions (SI/NIST SP 811) between compatible dimensions, returning exact conversion factors or rejecting incompatible dimensions.","exampleAgentPrompt":"Convert 32 degF to degC as an absolute temperature reading, and also convert a temperature difference of 15 degF to Celsius — give me the exact factors for each.","exampleUseCases":[{"title":"Batch recipe unit conversion with density","prompt":"I need to convert 2.5 cup_us of olive oil to grams — use a density of 0.911 g/mL — and also convert 3 tbsp_us of olive oil to grams with the same density, all in one call."},{"title":"Engineering compound unit validation","prompt":"Can you verify that 9.80665 kg*m/s^2 equals 1 kgf? Check it against my claimed value and flag if the relative error exceeds 1e-6."},{"title":"Scientific pressure batch conversion","prompt":"Convert these five pressure values from psi to pascal for me: 14.696, 100, 1000, 3000, and 15000 psi — I need the exact conversion factors."}],"resultDescription":"For each item, the agent receives the converted numeric value, the exact multiplicative factor used (or affine offset for absolute temperatures), and either a success confirmation or a structured error indicating why conversion was refused (e.g., incompatible dimensions, ambiguous unit symbol, density required but missing, claimed value out of tolerance).","failureModes":["Incompatible dimensions (e.g., length to mass) → returns dimension mismatch error with explanation","Ambiguous bare unit symbol (e.g., 'cup' without qualifier) → returns unknown with list of candidates (cup_us, cup_label, cup_metric, cup_jp)","Mass-to-volume conversion attempted without caller-supplied density → returns error requesting density","Value magnitude exceeds 1e15 → rejected","Claimed value fails tolerance check → returns expected vs actual mismatch","More than 100 items in batch → rejected","Non-finite numeric input → rejected"],"whenToPreferThis":"Choose this endpoint when an AI agent needs exact, verifiable unit conversion factors for SI and NIST SP 811 units including compound dimensional expressions — especially when you need dimension mismatch detection, batch processing of up to 100 conversions, correct absolute vs. difference temperature handling, or mass-to-volume conversion with a known density. Prefer over general-purpose calculators when correctness guarantees and explicit refusals for incompatible units matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-18T18:44:00.926Z","isFirstParty":false,"canonicalSlug":"writerslogic-unit-converter-f4750390"}