# `AshAi.Tool.Errors`
[🔗](https://github.com/ash-project/ash_ai/blob/v1.1.0/lib/ash_ai/tool/errors.ex#L5)

Formats Ash errors into human-readable text for tool responses.

As the MCP specification dated 2025-06-18, tool execution errors should be
returned as successful responses with `isError: true` and error details in
the content array

# `format`

Formats an Ash error into a mcp protocol compatible structure for tool error responses.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
