{"uid":"cap_2k01YxWzMhXtqegbuLBzh","slug":"weight-mass-unit-converter-2b1b3dcc","name":"Weight & Mass Unit Converter","description":"Convert a non-negative weight or mass value between common units. Use this deterministic endpoint when an agent needs a precise unit conversion.","url":"https://87-106-119-237.sslip.io/api/convert-weight","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["value","from_unit","to_unit"],"properties":{"value":{"type":"string","description":"Non-negative decimal weight or mass value."},"to_unit":{"enum":["carat","g","kg","lb","long_ton","mg","oz","short_ton","st","tonne","ug"],"type":"string","description":"Output unit."},"from_unit":{"enum":["carat","g","kg","lb","long_ton","mg","oz","short_ton","st","tonne","ug"],"type":"string","description":"Input unit."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["value","from_unit","to_unit","result"],"properties":{"value":{"type":"string"},"result":{"type":"string"},"to_unit":{"type":"string"},"from_unit":{"type":"string"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_v99ZGAyrTTUayP9sx_fwm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a non-negative weight or mass value between 11 common units (mg, g, kg, oz, lb, st, carat, tonne, short_ton, long_ton, ug) with deterministic precision.","exampleAgentPrompt":"Convert 175 pounds to kilograms for me — I need the exact value.","exampleUseCases":[{"title":"Recipe ingredient unit conversion","prompt":"I have a recipe that calls for 8 oz of flour but my kitchen scale only measures in grams — can you convert 8 oz to grams for me?"},{"title":"Shipping weight calculation","prompt":"I need to know how many kilograms 2.5 short tons is — can you convert that for me so I can fill out the freight form?"},{"title":"Gemstone weight in carats","prompt":"My jeweler says this diamond weighs 0.35 grams — how many carats is that?"}],"resultDescription":"Returns a JSON object containing the original value, source unit, target unit, and the converted result as a string — e.g. {\"value\": \"175\", \"from_unit\": \"lb\", \"to_unit\": \"kg\", \"result\": \"79.3787\"}","failureModes":["Missing required query parameter (value, from_unit, or to_unit) returns an error","Negative weight value rejected — only non-negative values accepted","Invalid unit string not in the accepted enum returns an error","Non-numeric value string causes a parsing error"],"whenToPreferThis":"Use this endpoint when you need a deterministic, precise weight or mass unit conversion across common units including metric (mg, g, kg, tonne), imperial (oz, lb, st, short_ton, long_ton), and specialty units (carat, microgram). Prefer it over general-purpose LLM math when exactness matters (e.g. shipping, lab, cooking, jewelry). Avoid if the unit you need is not in the supported enum list.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:37:28.830Z","isFirstParty":false}