{"uid":"cap_X0wjcralUjDTdooH1vCdF","slug":"moles-grams-molecules-converter-x402-forgemesh-io-b0771958","name":"Moles/Grams/Molecules Converter (x402.forgemesh.io)","description":"Mole conversion API: for any chemical formula, convert between grams, moles, and number of molecules using the formula's molar mass and Avogadro's number. Give grams or moles and get all three. For stoichiometry, lab prep, and chemistry education agents.","url":"https://x402.forgemesh.io/moles-convert","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"grams":{"type":"string"},"moles":{"type":"string"},"formula":{"type":"string"}}},"responseSchema":{"type":"json","example":{"moles":1,"molecules":6.02214076e+23,"molar_mass_g_per_mol":18.015}},"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_se6LK1c5tGEMvb8eiat_9","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 between grams, moles, and number of molecules for any chemical formula using molar mass and Avogadro's number.","exampleAgentPrompt":"How many moles and molecules are in 18 grams of H2O?","exampleUseCases":null,"resultDescription":"Returns all three interconverted quantities: grams, moles, and number of molecules for the given chemical formula — derived using the formula's molar mass and Avogadro's number.","failureModes":["Invalid or unrecognized chemical formula returns an error","Neither grams nor moles provided — at least one is required as input","Malformed numeric string values for grams or moles","Formula with unsupported elements may fail molar mass lookup"],"whenToPreferThis":"Use this endpoint when an agent needs to convert between grams, moles, and/or number of molecules for any chemical formula — particularly useful for stoichiometry calculations, lab preparation, or chemistry education contexts. Prefer over manual calculation to avoid errors with complex multi-element formulas.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:57:37.263Z","isFirstParty":false}