Episode 114 · The Every Podcast
Inside Stainless: The Developer Tools Startup Anthropic Just Bought for $300 Million
20 May 2026 · 51 min
Episode 114 · The Every Podcast
20 May 2026 · 51 min
If your MCP server has dozens of tools, it's probably built wrong. You need tools that are specific and clear for each use case—but you also can't have too many. This creates an almost impossible tradeoff that most companies don't know how to solve. That's why we interviewed Alex Rattray, the founder and CEO of Stainless. Stainless builds APIs, SDKs, and MCP servers for companies like OpenAI and Anthropic. Alex has spent years mastering how to make software talk to software, and he came on the show to share what he knows. We get into MCP and the future of the AI-native internet. [Disclosure:…
The internet runs on computers talking to each other, but its entire architecture was built for a pre-AI world. Now we're trying to hook AI up to the internet with MCP, Model Context Protocol, which turns any website or web service into a set of tools that an AI can use natively to get work done. And the software companies that learn how to do MCP well are going to win over the next decade. That's why I brought Alex Rattray, the founder and CEO of Stainless, onto the show.
Stainless's job is to help computers talk to each other. They make the API and SDKs for all the big companies that you know about, like OpenAI and Anthropic. And they're starting to build MCP servers too. So Alex and I get into the nitty gritty of what the future of MCP looks like, how to how to design good MCPs, why MCPs are actually really hard to scale and possibly insecure. And we try to figure out together what a better model for allowing AIs to use the internet might look like.
This is a great episode. Alex is a good friend of mine. Let's dive in. Alex, welcome to the show. Thanks, Dan. It's really exciting to be here. It's good to have you. So for people who don't know, you are the founder and CEO of Stainless, which is the API company. You make APIs for companies like OpenAI and Anthropic, and just name your big company that you might use their API. Stainless is probably behind it. Before that, you worked at Stripe doing their API.
Surprise. Yeah. And before that, most importantly, we were very good friends in college and we remained good friends. And we were both starting companies in college. I'm a tiny investor in Stainless. But it's been really, really fun to watch your journey and get to get to hang out together so much over the years. And I'm just very excited to bring you on to talk about AI and what you're doing at Stainless. Thanks, Dan. Yeah, it's it's. been really fun over the years.
I mean, you know, when, when we were in college, um, I was working on a startup, you were working on a startup, you had a conference room, um, at a venture capitalist office, um, as your office. And, uh, you let me crash there, um, with, uh, with my co-founder and team. Um, and we were just like on the other side of the conference table, hacking away into the evening. Um, and, uh, Uh, and, you know, very fond memories of those days. And these days it's, it's not every evening, but you know, on the weekends, whatever, same thing is still happening.
Um, and it's, you don't, you don't see that every day and it's, it's, it's really a nice feeling. And, um, it's been great to see everything happening with every, um, on the way. Thank you. As I say, I started from the bottom. Now we hear, um, uh, and, uh, yeah, I mean, I, the thing that I always say when people, uh, I, I, I, I, I, I, I, I, I, I, I, I, I, I, I, I, I, I, I, I, I, I, I, I, I, I, I, I, I, I, I, I, I, I, When I run into people and they ask me about you, in order to embarrass you, I just talk about how you're the only person that I know of who has consistently run barefoot through the streets of Philadelphia.
Because when we first met, you were not a fan of shoes and you were a fan of running. You want to talk about that? Yeah, it wasn't that I didn't like the concept of shoes. It's that I couldn't find a good pair. Um, and at a certain point, you know, it's like I was running through Nikes and they would, they would bust open every few months. Um, I think what was actually going on is I had really wide feet. Um, and was, I was buying probably narrow shoes.
Um, but they would, shoes would constantly get ruined. And, um, you know, on a college budget, it's just like, this is, this is, this is no good. Um, and, uh. Eventually I decided, okay, the longer you wear your shoes, the more worn out they get. But the longer you just wear your feet, the tougher they get. So the longer you wear your feet. Try it out. Try this at home. What could go wrong? I actually currently have a really annoying splinter in one of my feet.
And so don't actually try this at home. Are you still running barefoot? No, no. This is just from around the house. I see. Dangerous. Yeah. But see, that's the thing. If I had been going around on the asphalt without socks on, then my feet would have been tougher and I'd have no splinter. Um, so when you're not running barefoot, uh, you're running, you're running stainless. Um, so you're running stainless and so how many people are you? You know, you're, you're around 50, right?
Just about. Yeah. That's, that's pretty wild. Uh, and you started stainless in a pre AI world and now we're in an AI world and I think you have some. ideas for what the future of AI is going to be and maybe how APIs fit into that, maybe how MCPs fit into that. Do you want to paint a little bit of a picture for us about where we're going? Yeah, I would love to. So to start, like, what's an API? Not everybody's familiar with that. So it stands for application programming interface.
There will not be a quiz, right? Right, Dan? No quizzes? No, no quizzes. Great. But basically, it's how one computer program talks to another computer program. Um, it's how, it's how computers talk to computers, how apps talk, talk to apps. Um, and so APIs are, are the dendrites of the internet. Um, dendrites are where your neurons connect and actually exchange information with each other. So if you have like two neurons in your brain, but they're not talking to each other, uh, you're actually not thinking, right?
There is no thought happening in a brain without connections between neurons. Um, and if you think about the internet, if all these servers in the cloud aren't talking to each other, you wouldn't. you wouldn't have internet, right? Like there's nothing going on. If, you know, programs, internet software is doing nothing without APIs, without connections to other programs. And so it's really fundamental to the mesh of pretty much all modern software.
Everything that we think of when we think about technology at this point, APIs are kind of at the heart and center of that, just like, yeah, Dendrites are the center of the mesh of the brain and how we think. And Stainless's mission from day one was to make it easier for computers to talk to computers. It's the long-running trend of technology to have more automation. Automation is... what we mean when we say, okay, we're going to, you know, we're going to, we're going to apply technology to that.
You know, we're generally going to be making things more efficient. Um, and APIs are how most business to business interactions in some format or another, um, become, become real, become automated. Um, and what we see with the, the rise of AI is that there is a new, a new computer has entered the chat, right? There's a new kind of system that can talk to other systems, or at least we would like it to be able to. You used to have either, you know, Humans interacting with a computer through a user interface, a UI, or a computer acting with a computer through an API.
And now we have LLMs interacting with computers, right? And what's that through? And I'm sure anyone familiar with, you know, with Every and his regular listeners is going to be familiar with MCP, Model Context Protocol, which is a system for connecting devices. LLMs to computers, broadly speaking. And it's an area that we're investing in at Stainless. It's really, I think, part of our core mission of, like I said, make it easy for computers to talk to computers.
And... We've invested a lot of time, you know, at Stainless, the core product that we first brought to market is software development kits, SDKs. And so these are ways of saying, OK, Stripe has this great REST API. You know, you can send JSON over HTTP and get back JSON over HTTP. And if you want that to be really convenient, you're going to use the Stripe Python library, the Stripe Python SDK. So you can go, if you're a Python developer, you'll go pip install Stripe.
And then in your application code, you'll write stripe.customers.create. And all of a sudden, you have a nice new customer object in sort of your Stripe database. And you're off to the races. Or stripe.charges.create in the old days to charge a credit card. Okay. And SDKs are what gives developers that easy way to interface with an API. What's the thing that gives LLMs an easy way to interface with an API? And you might say MCP, and in a sense, you'd be right.
But what we're seeing so far as MCP is rolling out into the world and people are experimenting with it and trying it out, is... is that it's not working so great. Like there's, it's difficult to deliver on what I see as the core vision of what's so exciting about MCP, which is just like a dashboard and a user interface lets you click around, see a bunch of stuff, fill out forms, click buttons, do things. Anything that you would do while you're interacting with the software, you'd do through the user interface generally.
But LOMs interacting through MCP, it tends to be much more restricted. You can only do a few little things. There's usually not a ton of tools that you're going to be exposing to the models. And just to stop you there, so I think what I'm hearing you say is what MCP does is just like a website is built for humans to be used, MCP is sort of the equivalent, and you can think of it in certain ways, of exposing a set of tools for the model that it can use to perform certain functions.
Just like you might click a button on a website, the MCP gives to the model specifically. a bunch of things they can click on or use to get work done. So an example might be, you know, and a Gmail MCP has like a send mail tool or like a compose mail tool or a read inbox tool, that kind of thing. And instead of a human going on the Gmail website and doing it, it's the, it's the LLM is like, you know, essentially logging in and using it itself. And it's a, it's a native interface for language models.
But you're saying that, That's not working that well. Can you tell me more about that? Yeah. So let's start actually with kind of what I see as the big vision of MCP. And in some sense, the big vision of agentic AI in the first place. And I'll start with the most pedestrian example you can imagine. It's going to be funny given some of our context. Um, which is, let's say, you know, Dan walks into my store and, um, buys a pair of stripy socks, um, and maybe a few other things.
And then the next day I hear back from Dan, um, that there was something wrong. Unfortunately, it happens, you know, and I turned to someone on my team and I say, Hey, um, can we refund Dan for those stripy socks he bought yesterday and send him a discount code for, for the next time he comes in with like a little thank you note. Um, yeah. Because we like to take care of our customers. This is like the most normal thing to do in software is some little task like this.
And what you're going to do, what the member of my team would be doing would be opening up... their internal admin and looking around for some things, they might go to the Stripe dashboard and try to look through the list of payments or the list of transactions or orders and try to find one that has someone named Dan. Which Dan? I don't know. There might be a bunch of Dans. Try to look through the list of products in the order and see whether there was some Stripey socks in there.
That might be a few clicks required, depending. Find the right one, then go to the screen where you can create a refund, create a refund, make sure it's the right amount, then go and create that discount and then take that discount code and send it. over to some other SaaS app where you log in to send some mail automatically. Right. And of course, if you step away from the consumer version of this to a business to business context, of course, you might be going into Salesforce and sending a Slack message to an account administrator, an account manager, so on and so forth.
And in the normal course of work, it's just the most normal thing in the world to be having one task involve going through five different apps each time 15 different clicks and scrolls and loading loading spinners, just to do sort of like one simple thing. And the promise of agentic AI is to be able to take that same prompt I just said and type it into chat GPT or cloud or whatever, and say, Hey, chatty, buddy, can you help refund my my friend Dan?
and just have the ai go off and do that and basically go through these five different apps and the 15 different screens and the various different you know button presses to complete the task and then come back and say great it's done um that in order to do that now that's the There's only so many tool calls you have to make as an AI model to perform that exact linear chain of events. It's somewhat tractable. But if you think about this in the general case, you want the LLM to be able to do, you want your agentic AI to be able to do anything that that human operator would have done.
And you would want them to be able to do it without having to wait for a bunch of JavaScript to load. on a website or anything like that. And that means you need not only the Stripe Create Refund tool and the Stripe List Transactions tool and the Stripe List Products and Lookup Customer and Create Discount tool. You need not only those tools, but you need everything that you can do in the Stripe dashboard, which is basically everything that you can do in the Stripe API.
And that's actually a lot. Like there are hundreds of different endpoints that you have access to in the Stripe API. The Stripe dashboard is actually massive. It's a huge application. And if you were to take that list of tools today and go to an LLM and say, hey, here's our MCP definition for all of this. Here's a create refund tool. Here's a create transactions tool, so on and so forth. And you tell it all about those tools. Here's the description, here's all the different request properties that you can send, here's the response properties you can get back, here's all the documentation for each of those things.
Everyone listening to this should already know You've just burned through your entire context budget. That's, you know, maybe hundreds of thousands of tokens just there. Just in pretty much translating the Stripe Open API spec directly over to MCP tools. And today's models not only can't handle that amount of context, it's a poor use of context because you have a lot else going on. Uh, but it's also confusing to the model. It's just, it's just too much to hold in your brain at one time.
Um, and that's just the straight part of it, right? Um, because what you're really trying to do is enable your operators to do anything they would normally do. And again, that spans many, many different SaaS tools, right? In the course of one interaction, it might be five. In the next interaction, it might be a different five. And so if you think about every single SaaS tool that your business uses on a daily basis to get your work done. Ideally, you would want every single one of those tools to be exposed to your operators in their in their AI chat with every single tool available in there, with every single nook and cranny and corner case available so that you can do anything through AI.
That's that's the vision. Now, there's a lot of problems with that. The biggest one that I mentioned is sort of this context window limit. But you also have all sorts of security and permissions problems because. You don't want the AI to color outside the lines and say, OK, in addition to refunding Dan Socks, I also refunded every customer for all transactions ever, you know, and then I sent, you know, a bunch of money to my own AI bank account. Ha ha ha.
And so there's more to the challenge. But that's the vision I see. But I think, you know, the place we started there was. You said it's not working. but I don't think that that's the reason why it's not working today, right? Or is that the reason why it's not working today? So what people do with MCP today is sometimes they'll try to expose all parts of their API. The way people build MCP tools is, generally speaking, they have an underlying API, usually a REST API, and they wrap different parts of that, different endpoints, different operations.
in MCP tools. And you can kind of do that in a one to one mapping, or you can kind of handcraft things for the MCP. have to kind of handcraft it to the MCP, to the LMS. You have to say, okay, I'm making one specialized tool to look up a customer and refund their transaction based on a description. So there's all these like decisions that you have to make where you need to have like the ergonomics of the model and how the model thinks in mind in order to make sure the model does the right thing more often than not.
Yeah, it's hard. It's hard. Yeah, yeah. So I use this SDK analogy sometimes. So it took a long time for humanity to get to the point where we could make a really good Python SDK for a Python developer wrapping it in API. And I think we've we've we've cracked that nut. Stainless offers really great Python libraries, but we're building on the shoulders of giants here. A lot of people have have done this over time. Um, we haven't figured out how to expose an API ergonomically to an LLM in the same way that we've figured out how to expose it ergonomically to a Python developer.
Um, and that's a, uh, kind of like a new research problem in a sense. Um, and it's harder because I can go learn how to be a Python developer if I want. I can't really learn how to go think or see like an LLM. Um, but, uh, you know, sure would be powerful if I could. And that makes it tricky. We do have at Stainless, I think, some things that we're cooking up to address some of these problems, including the ones that you also mentioned. Like, LM's have a really hard time with...
a repeated sustained chain of, of actions. Um, and you know, even like if you get an API response back around, Hey, like list all the transactions, there's so much data and you might have to go through the next page and the next page and the next page to go through all the transactions to find the one that has Dan with the stripy socks. Um, and that's again, a ton of context with, one or two small needles in the haystack. And LMs are pretty good at that, but they're not perfect.
And with too much hay, you know, we all kind of end up throwing up our hands and that's true for LMs too. So yeah, so there's a lot of challenges today. And so when you look at, I mean, you're building MCP servers for people, but when you build them and just generally when you see people doing it well today, like what are the principles or how do you think about making an MCP server that one, people use, which is actually a big one. And then two, when it is used, actually does the right job.
There have been relatively few times that I've seen it done well. I have seen it done well. We're kicking something up that I'm really excited about. But with today's technology, you really have to do a good job of product management. I mean, you have to go out into the market and talk to your customers and see what their actual needs are and look over their shoulders as they use and operate your software and think about what could we unlock today.
through AI where people would be doing things that they can't really do with our software today because it just got so much easier. And then you have to do kind of a lot of engineering work usually to wrap it up in a bow that works for the models. And you have to set up a really good system for evals And if you're doing MCP, you have to think about the different clients that people might be using. Are they using cursor? Are they using cloud code?
Are they using something else? And the different models underlying all that. So you end up with this pretty crazy matrix of things that you might want to optimize for and ways that you might want to evaluate and make sure that what you're offering is working well. And it's also kind of a black box to get that feedback back to your. servers so that you can find out hey we gave it we gave a tool call response here we gave an answer of some kind was it actually any good um did the user like it um was the lm able to use it uh and and that's a problem that i think i haven't seen a lot of people solve um yet as well and so um Thinking about that as a first class thing, maybe you have like a send feedback tool.
That's something that we've been thinking about doing. Just so if a user like says out loud, you know, in the chat, oh, man, that was useless garbage. Like, OK, now, now, now at least the MCP server is going to find out about that. But is there anything specific you've learned about like how to do it well, other than like, obviously, you got to talk to your customers, think about your use cases, but like more concrete, more, more applicable stuff about how to design a good MCP server?
You want to keep the number of tools relatively small, relatively low. You want to have the tool name and the description be really precise and specific. Aren't those two things at odds? Yes. Good writing is hard. Yeah. I mean, that's like, you know, you can make a great tool of look up person by name and product description and then refund them you can make a great tool that does that um and you also want a small number of of in you know properties in the input schema um you want a small number of parameters and you want them concisely described but sufficiently described um this is this is also hard um and you want the response data to come back with a very small amount of data um only only exactly what the model will need that's also very hard because you a priori which things the model is really looking for um and you know we have a technique that we use in our mcp servers today where we give the model a jq filter which is a way of filtering out json um and that can work pretty well um but but that's kind of a special trick doesn't this mean that like mcp just needs another level of like a search tool function search tools like find a list of relevant tools given my task
The tool browsing problem is definitely one very serious one. And that is one approach. And so we actually do this at Stainless today, where you can get an MCP server for your API that just has, like I was saying earlier, the very simple thing of every endpoint is exposed as a tool. And if you have a small API, that works great. And you can also filter it out so you expose an MCP server with only a small subset of your endpoints. That works great.
You can also use kind of what we call dynamic mode where there's three tools no matter how big your API is. One is, you know, list endpoints. The other is get endpoint and learn about it. And then the last one is execute endpoint. And so that enables this context thing to scale really well. But it means there's three turns of the model just to do one thing. And so that that gets slower, it's more expensive in another sense. And there's some lossiness.
It performs pretty well usually, but not quite as well because the tools aren't loaded up in quite the same way. Are you using MCP servers yourself? Yeah, I use MCP to... Actually, funnily enough, not so much on the coding side, but I use it on the business side. So I'll use like the Notion, HubSpot, Gong, MCP servers to kind of say, hey, like an action MCP server for our database, a read only copy of our database and say, hey, what are the interesting customers that signed up for Stainless last week?
And it'll go off and make a great query of our Postgres database. And then it can cross reference those things in HubSpot and then look up our notes in Notion, maybe even look at transcripts in Gong and tell me all about it. It's incredible. Lots of us are shipping AI to production, which is great for productivity, but it also comes with anxiety. You tweak a prompt, swap models, adjust parameters, and everything looks fine in testing. So you merge.
And then three days later, or even sooner, the support tickets start rolling in. The AI is giving your customers unexpected answers and you have no idea when it happened or why. Braintrust is the AI observability platform that fixes this. It connects evals and observability in one workflow. That way you see what actually happened in production and can measure whether changes made things better or worse. Traces show the full execution path, evals define what good looks like, and experiments let you compare prompts and models side by side before shipping.
Production traces feed directly into your eval data sets. Every failure becomes a test case. You catch regressions in CI before they reach users. And teams at Notion, Stripe, Zapier, Vercel, and RAMP use it to ship quality AI at scale. Braintrust is designed for teams building production AI systems where silent regressions are expensive. It's built for any stack. They have SDKs for Python, TypeScript, Go, Ruby, C Sharp. There's no framework lock-in or vendor dependencies.
It's SOC 2, Type 2 certified, and GDPR and HIPAA compliant. Get started at braintrust.dev. That's braintrust.dev. And now, back to the episode. And so that's one of your big use cases. Are you doing that every week? Now I'm interested, not even from an MCP perspective, but for anyone running a... business that has some complexity and you're like, I want to know what's going on in the business. Like, what is, what are you actually doing and what is the report that comes out and how often are you doing that and all that kind of stuff?
So I can tell me so I can steal it. Yeah. Um, uh, for me, it's still usually in kind of like playing around mode. One of the things is the MCP servers disconnect and then I get annoyed. Um, and so, you know, you have to just kind of reconnect and whatever. It's not a huge deal. Um, uh, But there are there are a lot of little paper cuts still in a technology this new that you're going to expect that can hold back some amount of your usage. One of the things that I found really helpful kind of at the meta level, I'm sure you've had other guests talk about this, is the practice of just collecting notes for the for the AI by the AI and kind of edited and curated by yourself.
So, you know. I have a, like a, I can't remember if I call it a note. I think I have a notes folder, a research folder, something like that in a special Git repo that I use just for this sort of like internal stuff. And I'm like, hey, when you find interesting customer quotes, put them in this folder and give the full citation so that the next time I start asking interesting questions, it doesn't have to go searching through the MCP servers again.
It has them kind of cached in, um, just on desk in Markdown files. Wait, that's crazy. Wait, so how are you getting, like, what are you using to write into that Git repo? Like, is it cloud code? Are you using touch EBT? Like, how does it get in there? Yeah, I use cloud code these days for that kind of thing. And so you just have a cloud code open and running. And then a new customer testimonial comes in and you're just like, hey, can you throw this in my like get master company get knowledge repository basically.
And and then whenever you need anything later, you're like, Claude, like go search through my master repository to figure out where the best customer quote is for this. Totally. That's fucking so cool. Um, can I, can we see it? Um, no, it's too messy and probably has a lot of confidential information. Uh, the latter being more, more important. Um, is it, um, when you say it's messy, like, are you having Claude organize it at all? Or like, how is it structured?
There's a lot that, that I want us to do here. Um, that we haven't had the chance to do yet. There's some, there's some other lower hanging fruit that I'm working through, that our business team is working through right now, just on the basics of your kind of CRM systems and so on. Yeah. But, um, and so it's not as, it's not well structured now, but I think that's fine. Um, I, yeah, I, I, I, I'm not, I don't plan to prioritize structuring it super, super well until we're using it more.
I'm using it more broadly because, you know, I use this stuff some of the time. Um, one of the, one of the. business people on the team uses it a fair amount. I think like one or two kind of of our customer support engineers use uses this stuff a lot, but it's not yet kind of broader than that. And I would like I would like it to get there. And once we see how everything's evolving, I think that's when we'll start bringing in more structure. But as it is, cloud code can can handle unstructured stuff really well.
So you don't have to think about it too too hard in advance. And in my view, you can move things around later. What else do you have in there other than customer quotes? Um, SQL queries. Um, so, you know, I'm a software developer. Um, uh, I, I don't write a lot of code these days, but, you know, I spent a lot of time doing that. And so, um, when I say, Hey, you know, can you look up, uh, you know, I might be, Hey, how is our month on month growth of XYZ metric over the last three months?
You know, I did this recently, I did this for my last, uh, board prep. Um, and, um, it came out with a pretty good answer right away. And I was like, wow, this is awesome. And then I kind of looked a little bit deeper and I was like, oh, I actually want to exclude, you know, these users from this analysis and I want to filter it this way and filter it that way. And I kind of imbued more of this business context into that SQL query. And I iterated with with Cloud Code to get it to be better and better for the specific kind of metric that I was looking for, the specific kind of story that I was trying to tell.
And then I got it to a good place. I was like, great, let's dump this to. you know, an analysis folder for, or an analytics folder for future use. And then next time you're doing your board prep, you can be like, hey, what was that query that we did last time? And it'll presumably go get it. Yeah. That's really cool. What else? You know, as any software team is these days, we're using this also for, for, hey, a customer comes in with a question and, can, can cloud code just fix it?
Um, uh, you know, and so you'll have, uh, in some cases, a linear ticket is filed and then, you know, our support engineers are really very technical. Um, and so they may not have the wall clock time to go down and chase down the fix themselves to, you know, incoming bug. Um. They have the technical skill, but guess what? Another customer writes in two minutes later and they want to jump on that. They don't want to be knee deep in a debugger. And so something that we do sometimes is they'll file the ticket in case.
And by default, it'll maybe they intend to do it later or some other engineer is going to be doing it later. But hey, can we can we see if Cloud Code can just take a crack at it? Is that going to work out? 100% of the time definitely not is that going to work out 50% of the time still no um to be honest with you um but can that improve the overall efficiency um yeah maybe uh we're still I would say experimental there um but but we're seeing a lot of promise that's really interesting Okay.
Well, I know you also, you know, in our pre-production call, you were talking about you have a big vision for the future of AI. Do you want to talk me through that? Yeah, yeah. I would love to. You know, we talked earlier about how agentic AI can make... Operators' lives a lot easier by taking their, you know, certain pedestrian tasks and sort of running with it independently. And that's something that I think as an industry we're almost on the cusp of.
And if you start stepping... You know, you ask how you get there and you also start asking about the steps beyond that and beyond that. A big part of the way I see things unfolding from here, I like to say, is the future of AI is cyborgs, which is like sort of like extra ridiculous because like. what is a cyborg other than like already like a robot. But, you know, cyborg, as I understand it, is a term that means you're sort of like part, you know, person and then part machine.
And in this case, I mean, when you go and talk to an agent, what you're going to be getting is part GPT, neural net, LLM, part AI, and part code. where the machine, quote-unquote, that I'm talking about is traditional CPU, not GPU software. And to me, I think I expect this to play out in two main ways. One is your kind of one-off operational use cases, like we were talking about a minute ago. And then the other is production software. And in the use case we were talking about a minute ago, where...
Someone needs to kind of perform some tricky one-off action with a bunch of points and clicks. And now we want an AI to just do a bunch of tool calls. The way I actually see that happening and what we're building towards is code execution. So rather than the model having a bajillion tools, model has two tools. One to... Execute code where it just kind of has a text box of like hey put in some TypeScript and you're going to use this API's TypeScript SDK and you're just going to write stripe dot transactions dot list or stripe dot you know charges dot list and you're going to strike dot customers dot retrieve and strike dot refunds dot create this is really easy for models they're really good at writing code and if you give that tool a little bit of sort of a read me where you say here's an example request and here's some other resources some other API calls that you can make it's really good at extrapolating from patterns with if the SDK is sort of an API are well formed and predictable And then you give it an additional tool to kind of search the docs and ask questions to the docs.
And anything it's not sure about or gets wrong on the first try, you give it the documentation. And... What this does for that scenario that we were talking about earlier is you have very, very limited impact on the context window up front. And we're talking about a thousand tokens or something like that, maybe less. And the context impact of doing a whole bunch of paginated list requests. zero you know the the model will go look for somebody named dan and it'll double check um that the purchase of stripy socks and you might write three nested for loops but then only at the end when it found the right thing it'll console.log found dan customer id blah blah blah transaction id blah blah blah um and then create refund you know refund id one two three um and the context uh hit coming back from all of this is going to be like 10 lines of text.
You know, it's, it's really minimal. Um, and all of this will run really, really quickly too. So you don't have a round trip to the model every time you're doing something like this, it's just CPU code and it runs in a server in the cloud right next to the Stripe API in AWS somewhere probably. Um, and it goes super, super fast. Okay. So what I am understanding you saying is like the language model, um, has a tool where it can write code and send that code to this tool that the, you know, whoever the company is, whether it's Stripe or whatever, whoever's MCP server you're using, they'll go and execute that code.
And that code is going to interact with their API and then return the results rather than like these sort of, you know, you have 50 different, you have 50 different possible tool calls and. All that stuff. It's just model writes API code and API provider executes that code, runs it on their API and returns the results. Why wouldn't my model just write the code that I then run myself instead of relying on an API provider to do it? Um, I expect that that will happen a lot more.
I will expect, I expect that the code execution tool is going to become the most widely used tool. Um, the problem, one of the problems that we have today is that, um, the code execution tool doesn't work so well with libraries. LLMs have a hard time working with library and knowing exactly what version of the library it's using, using the right version, probably usually the most late, the latest version. Um, um, um, um, um, um, um, um, um, um, um, um, um, um, um, um, um, um, um, um, um, um, and not hallucinating aspects of the API and knowing how to iterate if it hallucinates wrong.
And if it can't use any library off NPM or the Python package index or anything like that really, really well, basically perfectly out of the box, then, okay, well, forget about using a library. At that point, you just have to hit the raw HTTP API. And at that point, in order to figure out what's in there, you need the whole open API spec. And you're back at square one because that document is massive. And furthermore, something that's really scary about that is if you don't have a typed library with static typing, where the computer can say what you're trying to do is wrong, then the LLM will try to make an API request that is wrong some percentage of the time.
The code execution tool can run a type checker and say, oh, you're asking about Stripe.transactions.list, but that actually doesn't exist. Stripe doesn't have a transactions API. You might want payment intents, you might want orders, you might want balanced transactions. Which one do you want? And if the API provider is doing a great job building this tool... it'll return the documentation for all of these things in line. It might have its own AI look at what the model's trying to do and come up with a suggestion.
And that sub-agent is well-trained, specified, always updating, and isn't burdened with the context of the full conversation. Hmm. What do you think of the security model? The security model is really, really interesting. I this is another area where we're really starting to think about things at stainless and I'm getting really excited about it. So if any listeners are really interested in this and have some ideas or want to talk, you know, please do reach out.
Yeah. At the end of the day, I think the security has to take place at the API layer itself. Right now, you see people trying to implement security by sort of limiting what's exposed through MCP. And that kind of makes sense. But at the end of the day, you could do anything that's in the API under the hood, right? And what people should be doing is using... OAuth with granular permissions, with proper scopes. And at that point, the security happens in the right place, which is at the API layer.
There's limitations to OAuth scopes, and it's pretty hard to build. So it'd be nice if someone made that easy, but in my view, that direction is sort of the right direction. the right layer. So going back to my earlier question, I'm thinking about the idea of having a model write code that then the API provider executes to interact with their API and then returns the results. Would you ever consider just creating a tool use tool that developers use?
Because for example, I'm thinking about for Quora. got all these tools. Maybe Gmail is going to build, you know, like a code use thing or whatever, but really I just want, um, I would probably use what you're talking about inside of Quora, but we, we would need a, a tool use tool or, but it's not a tool use tool. It's like a, it's a computer, it's a computer use tool where, and I know open AI has this, but it's not really well built for, for, for, for lots of libraries and stuff.
It's not a custom environment. Like I need a computer use tool, uh, where i control the environment and i can install different libraries in it and uh be able to call it any time to to then call any any api or it has to have network access basically yeah you guys should build that we're working on it fuck yeah you're building it for for uh for developers who want to access mcp servers or people who are providing mcp servers We're starting with people who are providing MCP servers, but ultimately I think that we're going to need this to work such that you can give the model a code execution environment where it can hit not only the Stripe integration, but also the Salesforce integration and also anything else.
and but not too much anything else right and so one of the advantages of starting where we're starting of just one api provider is that you ensure that there's no network connections allowed out of that sandbox where we're running the code to anything other than in this case api.stripe.com and that's that's really really critical for security for something like this and so there's ways to expand that bit by bit and keep things and keep things secure um i uh it'll it'll take some time the other thing i think to point out as you see some of these generalizations is it's not just that you want this like code execution sandbox to work really well for any api for any library um which i think we really do i think i think we really need that um you also start to see that you This is just a powerful model for AI doing stuff.
And sometimes you realize that the thing that the AI did this one time in this one-off case is actually enduringly useful. Maybe anytime a customer writes into support and says, hey... my socks had holes in them. You should automatically get a refund, you know, um, maybe you want that, maybe you don't, but there's a lot of stuff that people do one or one time and then two times and then three times. And then they say, okay, we should automate this.
Right. And that's, and that's what software teams do all day, every day. Right. And, and, I think we're also going to be seeing that with AI, where the same code search tool that we're talking about, all the same prompting that will make an AI really, really good at interacting with an API in one of these code sandboxes, kind of like almost quote unquote in its brain. We're going to like write code in its head, run the code in its head, see the results, and then move forward with your query, with your task.
It should be able to say, okay, actually, this is enduringly useful code. Let me commit this to the repo. Yeah, yeah, yeah, yeah. It's like, you know, chat is a really good interface for exploring, but sometimes you just want a dashboard. You know, I just want to like log into my Stripe dashboard and see all the stuff without having to be like, what is my MRR? It should just show up, you know, because I just do that every day. But I want to push you as a hashtag value add investor because I think that there's this...
thing that happens in AI where often the first attempt at something like this, people try to be really cautious. And I'm sure that your customers care about you being cautious, like big enterprise customers. But... The things that get adopted are often the ones that are willing to take the risk to be YOLO very early. So an example is Dolly was totally private for a long time, and people were posting some images, but you couldn't get in. And then Stable Diffusion was just like, fuck it, anyone can use this.
And then that just really started the whole image generation wave. Obviously, Stable Diffusion sort of fumbled the bag, but they had a lead for a little while. Same thing for Cloud Code, honestly. Like, if you look at... Codex is not like this as much anymore, but if you look at the difference between Codex CLI and Cloud Code, Cloud Code was just like, fuck it, like... YOLO mode. It's super industrious. It has a sandbox, but you can just do dangerously skip permissions.
And Codex just fell way behind because it was first it was in the browser. And so their whole thing was the whole thing was like locked down. And then it was in the it was in the in the CLI, but it was really built for. pair programming. And so it just wasn't particularly industrious. It wouldn't go off and do a bunch of stuff. It didn't, it would get locked out of doing certain things, even if you did full auto mode. And now they've like caught up because they're, they're like, yeah, you can just let it do whatever you want.
And so I would, I would really push you on. There might be a version that you could do today or tomorrow or very soon for individual developers that would let them set up this environment that, for example, I would use immediately. And I care about security, but I care a lot less than some ex-gigantic enterprise company. But I think the people like me who are building at this scale are eventually hopefully going to be the big companies. But we're the ones that are really doing the AI-first adoption, not the big companies.
Well, I would love to get this in your hands. What are some of the APIs your team uses the most? I'm thinking, we have a bunch of different products, but I'm thinking right now about Quora, the email assistant. And it has all of the, like the big APIs that it's using, it's mostly the Gmail API. And so you're interacting with the assistant over chat, and then it has a list of tools that are like, you know, archive email or draft email or send email or whatever.
Like there's a whole categorized tool. So it categorizes your mail in certain ways. And I think we would definitely try out something like this because it would, if it ran the same way, it would make it much more flexible for us to make more tools and not break old ones. You know, it's really interesting. Yeah. I mean, in a sense, what I actually predict is that people who are quote unquote building tools, once we have a code execution kind of super tool like I'm talking about, is that the only way you really quote unquote build a tool is with instructions, with prompts.
And the full power of everything you could possibly do in the API, in the Gmail API, for example. It's all there in one tool. But sometimes you have specific tasks or specific categories of work that you want to describe in a particular way to help the LLM perform a sequence of actions as productively as possible. And at that point, the only work in engineering that you have to do is, is prompt engineering. Um, we'll see if it's, we'll, we'll see if it's that quote unquote easy.
Um, uh, as we all know, prompt engineering can be, can be really tricky. It's hard. Yeah. But, um, but I think, I think that's, that's part of the vision. Um, That being said, you know, we do have some pretty nifty ways with the MCP servers that we generate today to help developers mix and match all the parts of the different tools underlying all the different parts of the API as they compose and write their own tools. This is awesome. So for people who are listening and want to know more from you and know more from Stainless, where should they find you?
Um, stainless.com, um, our, is it that's, that's our website. Awesome. Or at least visit stainless.com. Uh, Alex, great to have you on. I can't wait to do more of this. Uh, when you have some of these new things launched, this is really, really fun. And, uh, yeah, great to, great to chat. Thanks Dan. You too. Oh my gosh, folks, you absolutely positively have to smash that like button and subscribe to AI and I. Why? Because this show is the epitome of awesomeness.
It's like finding a treasure chest in your backyard, but instead of gold, it's filled with pure unadulterated knowledge bombs about chat GPT. Every episode is a roller coaster of emotions, insights, and laughter that will leave you on the edge of your seat, craving for more. It's not just a show. It's a journey into the future with Dan Shipper as the captain of the spaceship. So do yourself a favor. Hit like, smash subscribe, and strap in for the ride of your life.
And now, without any further ado, let me just say, Dan, I'm absolutely hopelessly in love with you.
Transcript supplied by the publisher with the episode.
by Dan Shipper · English · Tech & Science
The Every Podcast is Every's flagship show. Co-hosts Dan Shipper and Natalia Quintero talk with founders, researchers, writers, and operators about what they're building and how they use AI in their own work. The show also takes you behind the scenes at Every. We share how our team is using and expl
E117 · 10 Jun 2026 · 52 min
Mike Krieger built one of the most consequential consumer apps of the last two decades as the cofounder of Instagram. He is now at the frontier of AI-native product development as head of Anthropic Labs, the team responsible for figuring out what the most capable AI models can do in the hands of real builders. When Krieger first got access to Fable 5 months before its public release, it was exciting and disorienting. “I feel like a total newbie again,” he remembers telling his team. The way he’d been thinking about productivity, strategy, and time management was out of date. The model had…
E116 · 3 Jun 2026 · 34 min
The "SaaSpocalypse"—the panic that AI will make software-as-a-service obsolete—hasn't rattled Figma’s Matt Colyer. As the company’s director of product management for developers, he's been building his own agents for two years and is buying more software services than ever. In addition to making the case that AI is a “goldmine” for SaaS companies, Colyer talked with Dan Shipper for AI & I about why great design requires a diamond-shaped process: First you diverge, generating as many ideas as possible, then you converge around the best ones. Chat is linear, which makes it good for iterating…
E115 · 27 May 2026 · 41 min
Dan Shipper runs one of the most AI-native companies today. Every has agents embedded in nearly every workflow—“if you swing a stick in our Slack, you're as likely to hit a human as an agent,” he says. And yet the company has grown from four people to 30 since GPT-3 came out, and is still hiring. Why does Dan believe there's more human work to do than ever? In a format flip for AI & I, Every's COO Brandon Gell turns the tables and interviews Dan about his latest essay, “After Automation”—an 8,000-word argument for why rising automation doesn't eliminate demand for human work, it increases…
E113 · 13 May 2026 · 1 hr 10 min
From time to time, we will republish episodes that you might have missed. This episode originally aired in September 2025. Noah Brier uses Claude Code as his second brain—it’s the coolest notetaking setup we’ve ever seen. He has Claude running on a server in his basement hooked up to a VPN. It stores, reads, and writes to thousands of notes in his Obsidian vault. He does it all from his phone. We had him on the show to tell us exactly how he’s pulling this off. Dan and Noah get into: The nuts and bolts of the Claude Code-Obsidian setup: Noah set up Claude Code on top of his Obsidian root…
E112 · 8 May 2026 · 43 min
In the future, you’ll be able to accomplish a goal by just giving Claude an outcome and a budget. That’s the direction Anthropic is building in with its new Managed Agents features, announced at this week’s Code with Claude developer event. The basic idea: Claude, wrapped in a computer in the cloud, that you can spin up, scale, and manage as needed. Anthropic is taking on the infrastructure that kills most agent products, and making sure that it scales to meet the needs of agents running 24/7. On this week’s AI & I from @every, I talk with Angela Jiang (@angjiang), head of product for the…
E111 · 6 May 2026 · 58 min
In January, Dan Shipper wrote that whoever wins vibe coding wins how you work on your computer—and OpenAI had some serious catching up to do. Three months and the release of GPT-5.5 later, Codex has more than caught up. Austin Tedesco, Every's head of growth, now spends about 80 percent of his working time inside the Codex desktop app, doing everything from drafting go-to-market plans from a stack of meeting transcripts to rebuilding the company's KPI dashboard. On this episode of AI & I, Dan sat down with Austin to discuss why the agent management interface—a desktop app built on top of a…
7 Oct 2026 · 34 minNew
Subscribe to Every (free for 14 days): every.to/podcast-every-offer?utm_source=podcast&utm_medium=audio&utm_campaign=companyagentepisode On this week's episode of The Every Podcast, Dan Shipper sits down with Willie Williams, Every's head of platform and one of the driving forces behind the Every Agent, which launched this week. They discuss how Every went from everyone running their own OpenClaw to relying on one shared company agent—and where they think personal agents belong in everyday life. Links to resources mentioned in the episode: Willie Williams on X: https://x.com/bigwilliestyle…
30 Sep 2026 · 33 min
Sam Altman's Dot, OpenAI's new always-on agent, gave him back the most productive part of his day. The OpenAI CEO would lose his early mornings—his window of "maximum creativity"—to whatever fire needed putting out. Now, his Dot triages those issues and flags only what's truly urgent. It's also gotten him building again: In spare moments, he gives his Dot ideas for a feature, and his Dot builds five or six versions for him to review. On the first episode of The Every Podcast (formerly AI & I), Dan Shipper interviews Altman at OpenAI's DevDay. They discuss how Altman uses his Dot to protect…
E129 · 2 Sep 2026 · 48 min
Two years ago, Katie Parrott was laid off from a crypto firm and couldn’t afford a career coach—so she turned to a $20-a-month ChatGPT subscription instead. The Every staff writer’s habit of feeding AI good context eventually became compound writing, a codified system for brainstorming, drafting, and editing with AI. Today, that system is a plugin any writer can use. On this week’s AI & I, Natalia Quintero talks with Katie about turning good ingredients into good writing, borrowing the taste of writers she admires, and why AI helped her fall back in love with the page. If you found this…
E128 · 26 Aug 2026 · 1 hr 7 min
Will England is the CEO of Walleye Capital, a hedge fund managing nearly $10 billion in assets. An engineer by training with a math background from Oxford, he has spent his career at the intersection of machines and markets—and has made AI fluency mandatory for all 400 employees. England believes refusing to use AI is like refusing to use the internet in 1995 because it wasn’t perfect. His use of AI is public and effusive, including in a firm-wide email that opened with “I used ChatGPT to write this email. You should be using it, too, and be proud of it.” AI informs how Walleye drafts memos…