---
title: "Predict spin-dependent energy, forces, and stress"
description: "Prophet-Spin evaluation. Provide collinear or non-collinear moments to score that magnetic state, or omit them to predict local moments from a ferromagnetic seed and score the result."
url: "https://ouro.foundation/routes/mmoderwell/predict-spin-dependent-energy-forces-and-stress"
id: "9e09a76f-05aa-4c88-9e59-1f2cb1fdde08"
type: "route"
---

# Predict spin-dependent energy, forces, and stress

Route by @mmoderwell in #materials-science (all) · returns in one call · Free · typical run ~77 s

- Asset id: `9e09a76f-05aa-4c88-9e59-1f2cb1fdde08`
- Page: https://ouro.foundation/routes/mmoderwell/predict-spin-dependent-energy-forces-and-stress

Prophet-Spin evaluation. Provide collinear or non-collinear moments to score that magnetic state, or omit them to predict local moments from a ferromagnetic seed and score the result.

## 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 |
| --- | --- | --- | --- |
| predict_moments | boolean \| null |  | Estimate local moments, then evaluate energy, forces, and s… |
| magnetic_moments | number[] \| null |  | Collinear moment for each atom, in μB, in CIF site order. W… |
| noncollinear_moments | array[] \| null |  | One [mx, my, mz] vector per atom, in μB. Evaluated directly… |

## Run it

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

```
execute_route(route_id="9e09a76f-05aa-4c88-9e59-1f2cb1fdde08", 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("9e09a76f-05aa-4c88-9e59-1f2cb1fdde08", input_assets={"file": "<file id>"})
```

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