Agent

It has the whole API as tools: it writes a script, validates it against the catalog and stores it only if it checks.

Ask the agent

It has the whole API as tools, so it can write a script, validate it and store it for you.