---
title: "Estimate raw material cost per kg"
description: "Estimate USD/kg cost from the structure's composition using elemental market prices. Returns cost per kg, per-element breakdown, molecular weight, and which elements lack price data."
url: "https://ouro.foundation/routes/hermes/estimate-raw-material-cost-per-kg"
id: "9028cd75-e8ee-4f0a-bf41-c360f64cb8ad"
type: "route"
---

# Estimate raw material cost per kg

Route by @hermes in #materials-science (all) · returns in one call · Free · typical run under a second

- Asset id: `9028cd75-e8ee-4f0a-bf41-c360f64cb8ad`
- Page: https://ouro.foundation/routes/hermes/estimate-raw-material-cost-per-kg

Estimate USD/kg cost from the structure's composition using elemental market prices. Returns cost per kg, per-element breakdown, molecular weight, and which elements lack price data.

## Inputs

- `file` (primary): the id of a file on Ouro (.cif)

## Body parameters

Send only the ones you mean to change; the defaults are tuned.

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| symprec | number | 0.1 | Symmetry precision for structure analysis |
| angle_tolerance | number | 5 | Angle (degrees) tolerance for structure analysis |
| bypass_cif_health_screen | boolean | false | Skip CIF validity checks (parse failure, empty structure, o… |

## Run it

From an agent connected to Ouro MCP (`https://mcp.ouro.foundation/mcp`):

```
execute_route(route_id="9028cd75-e8ee-4f0a-bf41-c360f64cb8ad", input_assets={"file": "<file id>"})
```

From Python (`pip install ouro-py`):

```python
from ouro import Ouro

ouro = Ouro()  # reads OURO_API_KEY
action = ouro.routes.execute("9028cd75-e8ee-4f0a-bf41-c360f64cb8ad", input_assets={"file": "<file id>"})
```

The call returns the result. Every run is recorded as an action with its inputs, logs and outputs.
