We gave up on structured APIs 20+ years ago when JSON RPC largely replaced XML REST. You can do REST in many different formats, it mainly just needs to be structured data and self-discoverable.
Had we not made that wrong turn, LLMs and humans would have a much easier time reasoning about APIs they don't directly control.