IntermediateAbout 16 min

    Function / Tool Calling

    Read the full article on Substack

    6 min read.

    Walk a tool call end-to-end: the model emits a schema-constrained request, the runtime executes the function, and the result returns for a grounded answer — the foundation under agents and MCP.

    UserasksModeldecidesRuntimeruns toolsWeather APIlive data

    Press Play to follow one tool call from question to answer.

    Check your understanding

    Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.

    The tool-calling round trip

    Sequence

    Order one complete function-calling exchange.

    Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.

    1. 1Drop a step here
    2. 2Drop a step here
    3. 3Drop a step here
    4. 4Drop a step here
    5. 5Drop a step here
    6. 6Drop a step here
    6 pieces left to place

    Quiz

    20 questions
    Question 1 of 20
    Score: 0

    In tool calling, what does the LLM actually produce?

    Done with this lesson?

    Sign in free to keep your progress, streak and quiz scores.

    Keep going