# Return Values

URL: /milo-cli/docs/about/concepts/return-values/
Section: concepts
Description: How command return values become CLI output and MCP content.

---

> For a complete page index, fetch /milo-cli/llms.txt.

Prefer returning structured values from command handlers. Milo can format those
values for humans, serialize them for `--format json`, and expose them as MCP
`structuredContent`.

| Return value | Use it for |
|---|---|
| `str` | Short human-readable text |
| `dict` | Named structured result |
| `list` | Collections and tables |
| `int` / `float` / `bool` | Counters, measurements, and flags |
| `None` | Commands whose useful result is an explicit side effect |

For agent-facing commands, avoid requiring clients to scrape terminal prose.
Return data and use `Context` helpers for optional human-facing logs.
