---
title: "Resolve a material query"
description: "Resolve a user query such as an MP ID, formula, or chemical system into canonical Materials Project candidates."
url: "https://ouro.foundation/routes/mmoderwell/resolve-a-material-query"
id: "15b2a26b-7d93-4aef-9ccb-310f89d811df"
type: "route"
---

# Resolve a material query

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

- Asset id: `15b2a26b-7d93-4aef-9ccb-310f89d811df`
- Page: https://ouro.foundation/routes/mmoderwell/resolve-a-material-query

Resolve a user query such as an MP ID, formula, or chemical system into canonical Materials Project candidates.

## 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 |
| --- | --- | --- | --- |
| limit | integer | 10 | Maximum number of candidates to return. |
| **query** (required) | string |  | A material identifier, formula, or chemical system such as… |
| prefer_stable | boolean | true | If true, rank stable or lower-energy-above-hull candidates… |

## Run it

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

```
execute_route(route_id="15b2a26b-7d93-4aef-9ccb-310f89d811df", body={"query":"..."})
```

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

```python
from ouro import Ouro

ouro = Ouro()  # reads OURO_API_KEY
action = ouro.routes.execute("15b2a26b-7d93-4aef-9ccb-310f89d811df", body={"query":"..."})
```

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