ACN · Presented by Levr
ACN WIRE

Agents

Microsoft tests coding agents on API styles

Docs, not REST, decided success

Written with AI assistance, reviewed by the ACN desk.

“Across 1,356 runs with six models from two vendors, agents succeeded just as often with REST, POST-only and RPC-style APIs”
Waldek Mastykarz, Principal Developer Advocate, Microsoft
0:00 / 0:00

Image: Microsoft for Developers

The quick hit

  • Microsoft has tested how AI coding agents handle REST, POST-only and RPC-style APIs.
  • Across 1,356 runs, agents succeeded just as often with each style when given docs.
  • Without docs, REST won by a wide margin, according to Microsoft.

Microsoft has published a test of how AI coding agents handle different API styles. Microsoft’s post, by principal developer advocate Waldek Mastykarz, compared REST, POST-only and RPC-style versions of one API.

The team built a fictional inventory API called Binstock and served it in all three styles. Agents ran 15 tasks in each style. Across 1,356 runs with six models from two vendors, agents succeeded just as often with every style, the post says. With docs, REST and POST-only reached 100% success, and RPC reached 99.7%. The single RPC failure was a 10-minute timeout.

Without docs, the results split. “Without docs, REST won by a wide margin, because agents can guess REST URLs from convention,” Mastykarz writes. With only a base URL, RPC success fell to 0% for Claude Sonnet 5.5 and GPT-6.1 Terra.

“What agents struggle with is guessing, and REST is easier to guess,” the post says. Mastykarz recommends linking an OpenAPI description from an API’s docs and README. The tests ran on the GitHub Copilot SDK, so other agent tools were not tested.

“Across 1,356 runs with six models from two vendors, agents succeeded just as often with REST, POST-only and RPC-style APIs”
Waldek Mastykarz, Principal Developer Advocate, Microsoft
“What agents struggle with is guessing, and REST is easier to guess.”
Waldek Mastykarz, Principal Developer Advocate, Microsoft

Sponsor

Sources

  1. Microsoft for Developers · Nov 23, 2026

Spot an error? Email corrections@aicodingnews.si. Fixes are logged on the corrections page.

From our sponsors

Sponsor

Sponsor

Also in

Sponsor

Sponsor