API design for AI agents
Render shifts API design for LLM agents, runs 100 parallel evals to test changes JavaScript Conferences by GitNationTL;DW
- Treat APIs, SDKs, CLIs, and MCPs as your primary product interface now—the GUI is secondary observation space for humans managing agent actions.
- Document API schemas with examples, MCP tool descriptions, and CLI help as educational interfaces; agents learn your product through tool definitions while using it.
- Adding new tools can confuse agents if they overlap with existing capabilities; each tool needs a distinct job and you must retest existing tasks after launches.
- Optimize entire user journeys, not just individual tool calls; identify work between tool calls (scripting, verification, filtering) and bake it into your API as new endpoints or parameters.
- Monitor 404 errors in API logs—agent hallucinations reveal tasks they believe should exist; Render found users wanted clone services because of failed requests, then built it.
- Build an internal eval system running 100+ agents in parallel to measure API changes (correctness, time, cost, human help needed) before shipping to production.
- Use agent testing at scale as UXR replacement; spawn cloud instances to run A/B tests on API designs without recruiting users or hiring a full UXR team.
- Filter capabilities and details-on-demand in APIs reduce agent work; show next steps after success and recovery paths after failures to guide agentic workflows.
TL;DW
- Treat APIs, SDKs, CLIs, and MCPs as your primary product interface now—the GUI is secondary observation space for humans managing agent actions.
- Document API schemas with examples, MCP tool descriptions, and CLI help as educational interfaces; agents learn your product through tool definitions while using it.
- Adding new tools can confuse agents if they overlap with existing capabilities; each tool needs a distinct job and you must retest existing tasks after launches.
- Optimize entire user journeys, not just individual tool calls; identify work between tool calls (scripting, verification, filtering) and bake it into your API as new endpoints or parameters.
- Monitor 404 errors in API logs—agent hallucinations reveal tasks they believe should exist; Render found users wanted clone services because of failed requests, then built it.
- Build an internal eval system running 100+ agents in parallel to measure API changes (correctness, time, cost, human help needed) before shipping to production.
- Use agent testing at scale as UXR replacement; spawn cloud instances to run A/B tests on API designs without recruiting users or hiring a full UXR team.
- Filter capabilities and details-on-demand in APIs reduce agent work; show next steps after success and recovery paths after failures to guide agentic workflows.
Tej Chilukuri details Render's approach: scope each tool to a single job, embed filters and guided next steps to reduce round-trips, and monitor hallucinated 404s to surface missing capabilities. An internal Agent Experience Arena runs hundreds of parallel tasks to A/B test interface changes, measuring time-to-completion and task success rate.
