Discover · microsoft.com

Do AI coding agents struggle with non-REST APIs?

Microsoft for Developers microsoft.com

Plenty of APIs skip REST conventions. Some send every write over POST, and some name every endpoint after an action, like /updateBin or /deleteBin. On paper, agents should have a harder time with those. REST maps the intent onto the HTTP method, so changing a record is a PATCH and removing it is a DELETE. In comparison, an RPC-style API makes the agent work out what each endpoint is called and what it does. We expected that to cost agents something, either in failed tasks or in extra calls and tokens.

It didn’t, at least when the agent had the docs. Across 1,356 runs with six models from two vendors, agents succeeded just as often with REST, POST-only and RPC-style APIs, at the same cost in failed calls and tokens. Without docs, REST won by a wide margin, because agents can guess REST URLs from convention and have no way to guess what a non-REST API calls its endpoints.

More ways to use this

Open on another device

Scan this QR code to open the same public page

Scan to open this page. Your saved notes and account access are not included.

Download QR code

Open the page link

In the piece

Named in it

Keep going

Each of these is read from what this estate already kept: the feed a piece came through, the publisher behind it, the credits and topics the publisher printed. None of it is a recommendation, an identity or a record kept anywhere else.

More like this

Also from Microsoft for Developers

  1. Do AI coding agents care about SemVer?Waldek Mastykarz microsoft.com
  2. Your best AX fixes are hiding in agent trajectoriesWaldek Mastykarz microsoft.com
  3. Does ‘eval’ in the workspace path change what your agent does?Waldek Mastykarz microsoft.com
  4. Publish Visual Studio Marketplace extensions securely with Trusted PublishingLynn Dai microsoft.com
  5. PostgreSQL Like A Pro: Build, query, and troubleshoot without leaving VS CodeCynthia Zanoni microsoft.com
  6. Can a local git remote replace GitHub in your agent eval?Waldek Mastykarz microsoft.com