endpoint for agent custom; refactor ams client

16 jobs for develop in 1 minute and 23 seconds (queued for 4 seconds)