PLAY PODCASTS
APIs for Agents: Navigating REST, GraphQL, and MCP
Season 2 · Episode 1220

APIs for Agents: Navigating REST, GraphQL, and MCP

Why can't we just give AI the database password? Explore the shift from REST to GraphQL and how the Model Context Protocol changes the game.

My Weird Prompts · Daniel Rosehill

March 15, 202621m 55s

Audio is streamed directly from the publisher (dts.podtrac.com) as published in their RSS feed. Play Podcasts does not host this file. Rights-holders can request removal through the copyright & takedown page.

Show Notes

For decades, APIs have served as the stable contracts between frontends and backends, but the rise of autonomous AI agents is rewriting the rules of data exchange. This episode dives deep into the fundamental divide between REST’s predictable resource-based architecture and GraphQL’s flexible, self-documenting graph approach. We explore why the "database-as-an-API" remains a dangerous siren song and how the Model Context Protocol (MCP) acts as a vital translation layer for modern LLMs. From the "token cost" of discovery to the catastrophic risks of the N+1 query problem, we analyze which architecture provides the best "sanity layer" for agents navigating legacy technical debt. Whether you are building fresh tools or wrapping ancient systems, discover how to architect interfaces that empower agents without melting your infrastructure. This is a must-listen for developers looking to bridge the gap between structured data and the unpredictable world of generative AI.