{"uid":"cap_pMiVt3-ZPpvkTFjAQx1y5","slug":"formula-and-molecular-mass-check-b5b05ac0","name":"Formula and Molecular-Mass Check","description":"Parse a bounded formula with parentheses using a pinned 30-element average-mass table. Return composition and molar mass; no isotopes, purity or safety claim. New modular adapter: retained result recovery for 24 hours, minimal receipt metadata for 90 days. Existing live route unchanged.","url":"https://www.mahastrategies.com/api/v1/compute/chemistry/formula-mass-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"formula":{"type":"string","maxLength":128},"dataClass":{"enum":["public","synthetic"],"type":"string"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.010045","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.010045/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.010045","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.010045","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Xf68Nbn3wA479zcCU3WCz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.010045","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses a chemical formula with parentheses using a fixed 30-element average-mass table and returns elemental composition and molar mass.","exampleAgentPrompt":"Can you parse the chemical formula Ca(OH)2 and tell me its elemental composition and molar mass? Use the public data class.","exampleUseCases":[{"title":"Molar mass for lab calculation","prompt":"I need the molar mass and elemental breakdown of FeSO4·7H2O — treat it as a public formula and use the average-mass table."},{"title":"Formula validation in materials pipeline","prompt":"Check whether the formula Al2(SO4)3 is parseable and return its composition and molecular weight using public data."},{"title":"Synthetic compound mass estimate","prompt":"I have a synthetic compound with formula C12H22O11 — can you compute its molar mass and show me how many of each element it contains? Mark it as synthetic data class."}],"resultDescription":"Returns the parsed elemental composition (element symbols and atom counts) and the computed molar mass in g/mol based on a pinned 30-element average-mass table. No isotope-specific masses, purity details, or safety data are included. Results are retained for 24 hours; minimal receipt metadata is kept for 90 days.","failureModes":["Formula contains elements outside the 30-element supported table — returns an error indicating unsupported element","Formula string exceeds 128 character limit — returns a validation error","Malformed formula syntax (unbalanced parentheses, invalid symbols) — returns a parse error","Invalid dataClass value outside 'public' or 'synthetic' enum — returns a schema validation error","Service unavailable or payment failure — returns HTTP 402 or 5xx error"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic molar mass and elemental composition calculation for a bounded set of common elements (up to 30), with support for parenthetical groupings in formulas. It is ideal for automated chemistry pipelines, lab automation agents, or educational tools where average atomic masses suffice and isotopic precision is not required. Prefer alternatives if you need isotope-specific masses, safety data, solubility, or elements beyond the supported 30-element table.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T06:44:46.850Z","isFirstParty":false,"canonicalSlug":"formula-and-molecular-mass-check-b5b05ac0"}