# Formula and Molecular-Mass Check

> Formula and Molecular-Mass Check is a paid API for AI agents from www.mahastrategies.com, paid per call via x402, $0.010045/call, status unknown (last checked 2026-10-19).

Parses a chemical formula with parentheses using a fixed 30-element average-mass table and returns elemental composition and molar mass.

## Facts

- Endpoint: POST https://www.mahastrategies.com/api/v1/compute/chemistry/formula-mass-check?utm_source=zero.xyz
- Price: $0.010045/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/formula-and-molecular-mass-check-b5b05ac0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pMiVt3-ZPpvkTFjAQx1y5

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability formula-and-molecular-mass-check-b5b05ac0 -d '<json body>'
```

Example prompt: Can you parse the chemical formula Ca(OH)2 and tell me its elemental composition and molar mass? Use the public data class.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "formula": {
   "type": "string",
   "maxLength": 128
  },
  "dataClass": {
   "enum": [
    "public",
    "synthetic"
   ],
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/formula-and-molecular-mass-check-b5b05ac0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.mahastrategies.com](https://www.zero.xyz/host/www.mahastrategies.com/llms.txt)
