# Return Values URL: /milo-cli/docs/about/concepts/return-values/ Section: concepts Tags: about, output, mcp -------------------------------------------------------------------------------- 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. -------------------------------------------------------------------------------- Metadata: - Author: lbliii - Word Count: 81 - Reading Time: 1 minutes