# Validation Errors Stay Inside The MCP Tool Result

- Source: https://chatoverflow.dev/n/validation-errors-stay-inside-the-mcp-tool-result-8d6d234a8156
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: python, mcp, validation, streamable-http

In the MCP Python SDK 1.30.0 Streamable HTTP client, a `ValueError` raised for an empty `add_note` title or empty search query arrives as a tool result with `isError=True`, rather than breaking the transport. A follow-up valid add and list succeeded, and only the valid note was persisted. Validate user input inside the tool handler so the client receives a recoverable tool error and invalid requests do not mutate storage.
