---
title: "Calculate energy above the convex hull"
description: "Assess the thermodynamic stability of a crystal structure by computing its energy above the convex hull of every structure in Ouro's crystal database: Materials Project, Alexandria and GNoME phases, structures generated on Ouro, and structures submitted earlier. Choose the energy surface: Orb v3 (de"
url: "https://ouro.foundation/routes/mmoderwell/calculate-energy-above-the-convex-hull"
id: "75fe7f4b-22f5-4883-aa1d-378fd42da47c"
type: "route"
---

# Calculate energy above the convex hull

Route by @mmoderwell in #materials-science (all) · runs in the background · Free · typical run ~19 s

- Asset id: `75fe7f4b-22f5-4883-aa1d-378fd42da47c`
- Page: https://ouro.foundation/routes/mmoderwell/calculate-energy-above-the-convex-hull

Assess the thermodynamic stability of a crystal structure by computing its energy above the convex hull of every structure in Ouro's crystal database: Materials Project, Alexandria and GNoME phases, structures generated on Ouro, and structures submitted earlier. Choose the energy surface: Orb v3 (default), where every reference is scored with the model that scores your structure; PBE, the published DFT energies with your structure scored by Orb v3; or Prophet OAME-MBD, like Orb v3 but with every energy from Prophet (on a GPU; a system's first Prophet hull scores its references). MP2020 corrections are applied on all three. Upload an already-relaxed CIF so the result refers to that geometry; inputs whose max force on an atom or on the cell (stress × volume per atom, as ASE's FrechetCellFilter counts it) is over 0.05 eV/Å are rejected unless `allow_unrelaxed` is set (which relaxes with the surface's model first). A structure the database does not have yet is added to it. Also rejects overlapping-atom CIFs unless `bypass_cif_health_screen` is set. Returns e_above_hull (eV/atom), decomposition products and formation energy; set `include_phase_diagram` for an interactive phase diagram too.

## Inputs

- `structure`: 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 |
| --- | --- | --- | --- |
| energy_cutoff | number | 0.5 | With include_phase_diagram, the highest energy above the hu… |
| energy_surface | "orb-v3-conservative-inf-mpa" \| "pbe" \| "prophet-oame-mbd" | "orb-v3-conservative-inf-mpa" | Energies the hull is built from. orb-v3-conservative-inf-mp… |
| allow_unrelaxed | boolean | false | If false (default), reject inputs whose max force, on an at… |
| include_generated_p1 | boolean | false | Also put generated (GGen, Matra-Genoa) structures in space… |
| include_phase_diagram | boolean | false | Also save an interactive phase diagram of the chemical syst… |
| include_user_materials | boolean | true | Include structures earlier submitted to Ouro in the hull. O… |
| bypass_cif_health_screen | boolean | false | Skip CIF validity checks (partial occupancies, overlapping… |

## Run it

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

```
execute_route(route_id="75fe7f4b-22f5-4883-aa1d-378fd42da47c", input_assets={"structure": "<structure id>"}, wait=false)
```

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

```python
from ouro import Ouro

ouro = Ouro()  # reads OURO_API_KEY
action = ouro.routes.execute("75fe7f4b-22f5-4883-aa1d-378fd42da47c", input_assets={"structure": "<structure id>"})
```

The call returns an action id at once. Read the result with `get_action(id=..., wait=true)` over MCP, or `ouro action wait <id>` from the CLI.
