Back to the lesson libraryMECHANISM · 14 MIN
M25.2 CONNECT THE MECHANISM

Give tools clear inputs, results, and state

Wayfarer asked the hotel for "two" nights, then booked the room twice. Learn the contracts, request states, and retry keys that keep tool calls honest.

LESSON OVERVIEW14 min lesson

Lesson overview

Wayfarer asked the hotel for "two" nights, then booked the room twice. Learn the contracts, request states, and retry keys that keep tool calls honest.

What you’ll explore

  • Tool-using systems need validated arguments, defined results, persistent task state, and error semantics; well-formed output can still request the wrong action, or one the user never authorized.
Suggest a correction

A precise note can make an explanation better.

Choose the scene and describe what needs attention. Download a feedback file to share through a channel you already use. This page does not send feedback or connect you with a reviewer.

The file includes this note, the scene title, and lesson metadata. Your saved progress and quiz responses are excluded. Download before leaving or reloading to keep your note.