Hi everyone,
I’m using ChatGPT 4.1 with the Tool Connector to insert data into a structured SQL table in Supabase (not a vector table). The agent parses user input to extract two required fields:
- amount (integer)
- next_date_to_pay (timestamp/date in ISO format)
Then it calls a tool to insert these values into the table. The schema enforces NOT NULL constraints for both fields.
However, even though the agent seems to extract both values correctly, the tool call often fails with:
Bad request - please check your parameters: null value in column "amount" of relation "test_table_for_savings" violates not-null constraint
This seems like a standard scenario: extract → validate → insert into SQL. Has anyone experienced similar issues, or successfully implemented a setup where AI calls Supabase to insert or update data (not just read)?


