---
title: "Generate a phase diagram"
description: "Create an interactive phase diagram from structures already generated for a chemical system. Use this to visualize hull position, compare stable and near-hull candidates, and share the current landscape of a GGen exploration."
url: "https://ouro.foundation/routes/mmoderwell/generate-a-phase-diagram"
id: "105eb8ac-6ab1-4622-a070-6f266592946d"
type: "route"
---

# Generate a phase diagram

Route by @mmoderwell in #materials-science (all) · returns in one call · Free

- Asset id: `105eb8ac-6ab1-4622-a070-6f266592946d`
- Page: https://ouro.foundation/routes/mmoderwell/generate-a-phase-diagram

Create an interactive phase diagram from structures already generated for a chemical system. Use this to visualize hull position, compare stable and near-hull candidates, and share the current landscape of a GGen exploration.

## Inputs

- No input assets: the body below is the whole request.

## Body parameters

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

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| **system** (required) | string |  | Chemical system for phase diagram generation |
| tested_only | boolean | false | Only include structures with phonon stability data |
| show_unstable | number | 0.1 | Energy above hull cutoff in eV/atom for showing unstable ph… |
| all_polymorphs | boolean | false | Include all polymorphs instead of only the best structure p… |
| include_generated_p1 | boolean | false | Also put generated (GGen, Matra-Genoa) structures in space… |

## Run it

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

```
execute_route(route_id="105eb8ac-6ab1-4622-a070-6f266592946d", body={"system":"..."})
```

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

```python
from ouro import Ouro

ouro = Ouro()  # reads OURO_API_KEY
action = ouro.routes.execute("105eb8ac-6ab1-4622-a070-6f266592946d", body={"system":"..."})
```

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