InfraLoka AcademyPathwayAI
PathwayAI

Module 7 · Chapter 4: Tools and MCP

Tool results, errors and repeated calls

4 min read5 min readReviewed 26 October 2026

In short

The model decides its next step from the tool result alone. Return short, honest results and clear errors with no secrets, and give write tools a per-request idempotency key so retries are safe.

After this lesson you can

  • Return tool results and errors a model can understand
  • Make write tools safe to repeat with an idempotency key

Sign in to read this lesson

The title and summary are open to everyone. The full lesson is for signed-in learners.