Tool call results are appended server-side to the messages array — Claude never sees raw database rows, only tool output shaped by the predefined functions. The input_snapshot stored in ai_insights is ...