# AgentShield Molar Mass Calculator

> AgentShield Molar Mass Calculator is a paid API for AI agents from agentshield.live, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-20).

Returns the molar mass (in g/mol) of a chemical formula using CIAAW abridged standard atomic weights.

## Facts

- Endpoint: GET https://agentshield.live/molar?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshield-molar-mass-calculator-05da81ba
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4xDV0hiRSIPZWGCoLMMsa

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 agentshield-molar-mass-calculator-05da81ba
```

Example prompt: What is the molar mass of Ca(OH)2 using standard atomic weights?

## When to prefer this

Use this endpoint when you need a quick, standards-based molar mass for a simple chemical formula using CIAAW abridged atomic weights. Prefer this over manual calculation or general-purpose chemistry APIs when you want a single authoritative numeric result per formula without needing measured sample data or isotopic distributions.

## Known failure modes

- 404 returned for formulas containing elements with no CIAAW standard atomic weight (e.g. radioactive elements like Tc or Fm)
- Malformed or unrecognized formula strings may return an error
- Isotope-specific or bracket-heavy notation may not be parsed correctly
- Payment failure (402) if the x402 payment is not completed

## How this service works

Call when an agent needs the molar mass of a simple formula from CIAAW abridged standard atomic weights. Elements with no standard weight return 404. Not a measured sample mass.

## Output

A JSON object containing the chemical formula, its molar mass as a string (e.g. '18.015'), the unit ('g/mol'), and a boolean 'known' flag indicating whether the formula resolved successfully. Returns 404 if any element in the formula has no CIAAW standard atomic weight.

## Request schema (JSON Schema)

```json
{
 "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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "formula"
     ],
     "properties": {
      "formula": {
       "type": "string",
       "description": "Simple formula, such as H2O or Ca(OH)2."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "unit": "g/mol",
  "known": true,
  "formula": "H2O",
  "molar_mass": "18.015"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshield-molar-mass-calculator-05da81ba/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshield.live](https://www.zero.xyz/host/agentshield.live/llms.txt)
