Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm still laughing on how the error handling for tools is done, it's just a boolean field IsError.

https://modelcontextprotocol.io/specification/2025-06-18/ser...





There is a difference between protocol error and tool usage error, makes sense you want the model to see the tool usage error, so they can correct.

I'm guessing it has a the same shape as a normal message + IsError so on the handling side you don't really have to do anything special to handle it, just proceed as normal and send the results to the LLM so it can correct if needed.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: