{"uid":"cap_mx4B4Q_mCDRVvyPORpwH7","slug":"chemistry-concentration-basis-converter-c8522c3b","name":"Chemistry Concentration Basis Converter","description":"Reconcile molarity, mass concentration and fractions when required density and composition inputs exist. Flag missing assumptions; no invented material properties.","url":"https://www.mahastrategies.com/api/v1/micro/chemistry-concentration-basis?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["dataClass","value","from","to","molarMassGPerMol","densityGPerML"],"properties":{"to":{"enum":["mol/L","g/L","mass-fraction"],"type":"string"},"from":{"enum":["mol/L","g/L","mass-fraction"],"type":"string"},"value":{"type":"number","maximum":1000000000000,"minimum":0},"dataClass":{"enum":["public","synthetic"],"type":"string"},"densityGPerML":{"type":"number","maximum":1000000000000,"minimum":0},"molarMassGPerMol":{"type":"number","maximum":1000000000000,"minimum":0}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["version","offerId","amountBaseUnits","inputDigest","result","boundaries","receiptDigest"],"properties":{"result":{"type":"object"},"offerId":{"enum":["chemistry-concentration-basis"],"type":"string"},"version":{"enum":["maha-microproducts/0.1"],"type":"string"},"boundaries":{"type":"array","maxItems":128,"minItems":0},"inputDigest":{"type":"string","maxLength":71},"receiptDigest":{"type":"string","maxLength":71},"amountBaseUnits":{"enum":["8001"],"type":"string"}},"additionalProperties":false}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.008001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.008001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_q6QOO6QxAJ3qOdie4UZoo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts between molarity (mol/L), mass concentration (g/L), and mass fraction for a chemical species given its molar mass and solution density","exampleAgentPrompt":"Convert 2.5 mol/L of ethanol (molar mass 46.07 g/mol, density 0.789 g/mL) to mass fraction — flag any missing assumptions.","exampleUseCases":[{"title":"Lab solution preparation unit check","prompt":"I have a 150 g/L glucose solution with a density of 1.06 g/mL and a molar mass of 180.16 g/mol. Can you convert that to molarity in mol/L?"},{"title":"Mass fraction to molarity for reagent dilution","prompt":"Convert a mass fraction of 0.36 for sulfuric acid — molar mass 98.08 g/mol, density 1.84 g/mL — into mol/L so I can calculate my dilution properly."},{"title":"Concentration basis reconciliation for formulation QC","prompt":"I need to reconcile concentration units: my formulation shows 0.5 mol/L but my spec sheet uses g/L. Molar mass is 58.44 g/mol and density is 1.03 g/mL — convert mol/L to g/L and flag any missing data."}],"resultDescription":"Returns the numerically converted concentration in the target unit (mol/L, g/L, or mass-fraction), along with boundary flags for edge cases and warnings about any missing or assumed material properties. Also includes offer metadata, version, input and receipt digests for auditability.","failureModes":["Missing required inputs (molarMassGPerMol or densityGPerML not provided) — endpoint flags missing assumptions rather than inventing values","Value out of range (negative or astronomically large numbers) — rejected by schema validation","Invalid unit combination (from and to are the same) — may return identity or flag as no-op","Non-physical density or molar mass (zero values) — may produce divide-by-zero or flag as invalid","Payment failure via x402 protocol — call not processed"],"whenToPreferThis":"Use this endpoint when you need a deterministic, auditable unit conversion between mol/L, g/L, and mass fraction for a known chemical species and have both molar mass and solution density available. Prefer it over general-purpose calculators when you need explicit flagging of missing material property assumptions and a receipt-digested audit trail. Not suited for multi-component mixtures or cases where density or molar mass are unknown.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T12:46:34.252Z","isFirstParty":false,"canonicalSlug":"chemistry-concentration-basis-converter-c8522c3b"}