WEBVTT

1
00:00:00.251 --> 00:00:06.475
The internet runs on computers talking to each other, but its entire architecture was built for a pre-AI world.

2
00:00:06.615 --> 00:00:18.082
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.

3
00:00:18.242 --> 00:00:23.265
And the software companies that learn how to do MCP well are going to win over the next decade.

4
00:00:23.405 --> 00:00:27.728
That's why I brought Alex Rattray, the founder and CEO of Stainless, onto the show.

5
00:00:27.988 --> 00:00:31.490
Stainless's job is to help computers talk to each other.

6
00:00:31.910 --> 00:00:37.434
They make the API and SDKs for all the big companies that you know about, like OpenAI and Anthropic.

7
00:00:37.654 --> 00:00:39.775
And they're starting to build MCP servers too.

8
00:00:39.995 --> 00:00:44.358
So Alex and I get into the nitty gritty of what the future of MCP looks like, how to

9
00:00:44.398 --> 00:00:51.324
how to design good MCPs, why MCPs are actually really hard to scale and possibly insecure.

10
00:00:51.524 --> 00:00:57.009
And we try to figure out together what a better model for allowing AIs to use the internet might look like.

11
00:00:57.289 --> 00:00:58.190
This is a great episode.

12
00:00:58.350 --> 00:00:59.231
Alex is a good friend of mine.

13
00:00:59.571 --> 00:01:00.072
Let's dive in.

14
00:01:14.738 --> 00:01:15.659
Alex, welcome to the show.

15
00:01:16.320 --> 00:01:16.820
Thanks, Dan.

16
00:01:16.980 --> 00:01:18.321
It's really exciting to be here.

17
00:01:18.862 --> 00:01:19.543
It's good to have you.

18
00:01:19.583 --> 00:01:24.227
So for people who don't know, you are the founder and CEO of Stainless, which is the API company.

19
00:01:24.748 --> 00:01:31.254
You make APIs for companies like OpenAI and Anthropic, and just name your big company that you might use their API.

20
00:01:31.314 --> 00:01:32.915
Stainless is probably behind it.

21
00:01:33.816 --> 00:01:36.138
Before that, you worked at Stripe doing their API.

22
00:01:36.178 --> 00:01:36.619
Surprise.

23
00:01:36.639 --> 00:01:37.700
Yeah.

24
00:01:38.320 --> 00:01:43.182
And before that, most importantly, we were very good friends in college and we remained good friends.

25
00:01:44.002 --> 00:01:45.763
And we were both starting companies in college.

26
00:01:46.463 --> 00:01:48.064
I'm a tiny investor in Stainless.

27
00:01:49.064 --> 00:01:55.026
But it's been really, really fun to watch your journey and get to get to hang out together so much over the years.

28
00:01:55.346 --> 00:02:01.248
And I'm just very excited to bring you on to talk about AI and what you're doing at Stainless.

29
00:02:01.949 --> 00:02:02.409
Thanks, Dan.

30
00:02:02.509 --> 00:02:03.449
Yeah, it's it's.

31
00:02:05.942 --> 00:02:06.863
been really fun over the years.

32
00:02:06.883 --> 00:02:17.030
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.

33
00:02:17.311 --> 00:02:21.013
And, uh, you let me crash there, um, with, uh, with my co-founder and team.

34
00:02:21.774 --> 00:02:25.717
Um, and we were just like on the other side of the conference table, hacking away into the evening.

35
00:02:25.737 --> 00:02:26.378
Um, and, uh,

36
00:02:27.558 --> 00:02:30.300
Uh, and, you know, very fond memories of those days.

37
00:02:30.381 --> 00:02:35.645
And these days it's, it's not every evening, but you know, on the weekends, whatever, same thing is still happening.

38
00:02:36.045 --> 00:02:39.748
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.

39
00:02:39.788 --> 00:02:45.672
And, um, it's been great to see everything happening with every, um, on the way.

40
00:02:46.192 --> 00:02:46.613
Thank you.

41
00:02:46.773 --> 00:02:48.014
As I say, I started from the bottom.

42
00:02:48.054 --> 00:02:55.880
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,

43
00:02:56.797 --> 00:03:08.946
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.

44
00:03:08.966 --> 00:03:13.769
Because when we first met, you were not a fan of shoes and you were a fan of running.

45
00:03:13.989 --> 00:03:14.650
You want to talk about that?

46
00:03:15.284 --> 00:03:18.146
Yeah, it wasn't that I didn't like the concept of shoes.

47
00:03:18.226 --> 00:03:20.107
It's that I couldn't find a good pair.

48
00:03:21.068 --> 00:03:28.153
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.

49
00:03:28.633 --> 00:03:30.854
Um, I think what was actually going on is I had really wide feet.

50
00:03:31.495 --> 00:03:33.536
Um, and was, I was buying probably narrow shoes.

51
00:03:33.856 --> 00:03:35.738
Um, but they would, shoes would constantly get ruined.

52
00:03:36.838 --> 00:03:41.221
And, um, you know, on a college budget, it's just like, this is, this is, this is no good.

53
00:03:42.002 --> 00:03:43.863
Um, and, uh.

54
00:03:45.535 --> 00:03:49.578
Eventually I decided, okay, the longer you wear your shoes, the more worn out they get.

55
00:03:49.598 --> 00:03:51.900
But the longer you just wear your feet, the tougher they get.

56
00:03:52.640 --> 00:03:55.783
So the longer you wear your feet.

57
00:03:59.426 --> 00:03:59.906
Try it out.

58
00:03:59.966 --> 00:04:01.487
Try this at home.

59
00:04:01.507 --> 00:04:02.208
What could go wrong?

60
00:04:02.935 --> 00:04:06.298
I actually currently have a really annoying splinter in one of my feet.

61
00:04:06.898 --> 00:04:10.381
And so don't actually try this at home.

62
00:04:10.761 --> 00:04:11.822
Are you still running barefoot?

63
00:04:12.683 --> 00:04:13.564
No, no.

64
00:04:13.624 --> 00:04:15.645
This is just from around the house.

65
00:04:16.106 --> 00:04:16.886
I see.

66
00:04:17.427 --> 00:04:17.867
Dangerous.

67
00:04:18.448 --> 00:04:18.788
Yeah.

68
00:04:19.709 --> 00:04:19.949
Yeah.

69
00:04:20.009 --> 00:04:20.910
But see, that's the thing.

70
00:04:20.930 --> 00:04:28.496
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.

71
00:04:29.647 --> 00:04:34.150
Um, so when you're not running barefoot, uh, you're running, you're running stainless.

72
00:04:37.813 --> 00:04:43.197
Um, so you're running stainless and so how many people are you?

73
00:04:43.217 --> 00:04:44.638
You know, you're, you're around 50, right?

74
00:04:45.078 --> 00:04:45.498
Just about.

75
00:04:45.598 --> 00:04:45.778
Yeah.

76
00:04:46.819 --> 00:04:48.060
That's, that's pretty wild.

77
00:04:48.500 --> 00:04:55.145
Uh, and you started stainless in a pre AI world and now we're in an AI world and I think you have some.

78
00:04:56.422 --> 00:05:04.927
ideas for what the future of AI is going to be and maybe how APIs fit into that, maybe how MCPs fit into that.

79
00:05:04.947 --> 00:05:07.408
Do you want to paint a little bit of a picture for us about where we're going?

80
00:05:08.087 --> 00:05:08.748
Yeah, I would love to.

81
00:05:09.768 --> 00:05:11.370
So to start, like, what's an API?

82
00:05:13.211 --> 00:05:14.492
Not everybody's familiar with that.

83
00:05:14.532 --> 00:05:19.236
So it stands for application programming interface.

84
00:05:19.256 --> 00:05:20.657
There will not be a quiz, right?

85
00:05:20.717 --> 00:05:21.078
Right, Dan?

86
00:05:21.158 --> 00:05:21.618
No quizzes?

87
00:05:22.899 --> 00:05:23.640
No, no quizzes.

88
00:05:24.000 --> 00:05:24.200
Great.

89
00:05:25.321 --> 00:05:29.625
But basically, it's how one computer program talks to another computer program.

90
00:05:30.065 --> 00:05:34.088
Um, it's how, it's how computers talk to computers, how apps talk, talk to apps.

91
00:05:34.768 --> 00:05:38.430
Um, and so APIs are, are the dendrites of the internet.

92
00:05:38.670 --> 00:05:42.673
Um, dendrites are where your neurons connect and actually exchange information with each other.

93
00:05:43.073 --> 00:05:48.597
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?

94
00:05:48.617 --> 00:05:51.839
There is no thought happening in a brain without connections between neurons.

95
00:05:52.619 --> 00:05:58.483
Um, and if you think about the internet, if all these servers in the cloud aren't talking to each other, you wouldn't.

96
00:05:59.183 --> 00:06:00.804
you wouldn't have internet, right?

97
00:06:00.824 --> 00:06:02.004
Like there's nothing going on.

98
00:06:03.044 --> 00:06:10.627
If, you know, programs, internet software is doing nothing without APIs, without connections to other programs.

99
00:06:11.087 --> 00:06:16.610
And so it's really fundamental to the mesh of pretty much all modern software.

100
00:06:17.630 --> 00:06:25.053
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,

101
00:06:26.033 --> 00:06:30.036
Dendrites are the center of the mesh of the brain and how we think.

102
00:06:31.878 --> 00:06:43.767
And Stainless's mission from day one was to make it easier for computers to talk to computers.

103
00:06:44.267 --> 00:06:49.552
It's the long-running trend of technology to have more automation.

104
00:06:50.052 --> 00:06:51.013
Automation is...

105
00:06:52.547 --> 00:06:56.449
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.

106
00:06:56.589 --> 00:06:58.430
You know, we're generally going to be making things more efficient.

107
00:06:59.170 --> 00:07:07.493
Um, and APIs are how most business to business interactions in some format or another, um, become, become real, become automated.

108
00:07:07.974 --> 00:07:15.757
Um, and what we see with the, the rise of AI is that there is a new,

109
00:07:16.552 --> 00:07:19.053
a new computer has entered the chat, right?

110
00:07:19.433 --> 00:07:24.696
There's a new kind of system that can talk to other systems, or at least we would like it to be able to.

111
00:07:26.136 --> 00:07:27.637
You used to have either, you know,

112
00:07:28.486 --> 00:07:34.368
Humans interacting with a computer through a user interface, a UI, or a computer acting with a computer through an API.

113
00:07:35.028 --> 00:07:38.270
And now we have LLMs interacting with computers, right?

114
00:07:38.490 --> 00:07:39.290
And what's that through?

115
00:07:40.330 --> 00:07:50.834
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.

116
00:07:51.789 --> 00:07:55.834
LLMs to computers, broadly speaking.

117
00:07:56.415 --> 00:07:59.078
And it's an area that we're investing in at Stainless.

118
00:07:59.138 --> 00:08:05.626
It's really, I think, part of our core mission of, like I said, make it easy for computers to talk to computers.

119
00:08:06.487 --> 00:08:06.767
And...

120
00:08:08.693 --> 00:08:17.100
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.

121
00:08:17.200 --> 00:08:21.843
And so these are ways of saying, OK, Stripe has this great REST API.

122
00:08:22.564 --> 00:08:26.987
You know, you can send JSON over HTTP and get back JSON over HTTP.

123
00:08:29.430 --> 00:08:35.475
And if you want that to be really convenient, you're going to use the Stripe Python library, the Stripe Python SDK.

124
00:08:35.916 --> 00:08:39.178
So you can go, if you're a Python developer, you'll go pip install Stripe.

125
00:08:39.739 --> 00:08:44.483
And then in your application code, you'll write stripe.customers.create.

126
00:08:44.883 --> 00:08:49.567
And all of a sudden, you have a nice new customer object in sort of your Stripe database.

127
00:08:49.907 --> 00:08:50.788
And you're off to the races.

128
00:08:51.489 --> 00:08:55.152
Or stripe.charges.create in the old days to charge a credit card.

129
00:08:56.773 --> 00:08:57.173
Okay.

130
00:08:58.737 --> 00:09:04.399
And SDKs are what gives developers that easy way to interface with an API.

131
00:09:05.619 --> 00:09:09.540
What's the thing that gives LLMs an easy way to interface with an API?

132
00:09:09.580 --> 00:09:12.421
And you might say MCP, and in a sense, you'd be right.

133
00:09:13.421 --> 00:09:21.183
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...

134
00:09:24.175 --> 00:09:25.776
is that it's not working so great.

135
00:09:25.796 --> 00:09:43.087
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,

136
00:09:44.320 --> 00:09:46.382
fill out forms, click buttons, do things.

137
00:09:47.103 --> 00:09:50.927
Anything that you would do while you're interacting with the software, you'd do through the user interface generally.

138
00:09:52.409 --> 00:09:56.313
But LOMs interacting through MCP, it tends to be much more restricted.

139
00:09:56.773 --> 00:09:58.996
You can only do a few little things.

140
00:09:59.016 --> 00:10:02.259
There's usually not a ton of tools that you're going to be exposing to the models.

141
00:10:04.161 --> 00:10:24.780
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.

142
00:10:24.860 --> 00:10:28.844
Just like you might click a button on a website, the MCP gives to the model specifically.

143
00:10:29.204 --> 00:10:31.806
a bunch of things they can click on or use to get work done.

144
00:10:32.026 --> 00:10:42.532
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.

145
00:10:42.772 --> 00:10:51.297
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.

146
00:10:51.317 --> 00:10:53.458
And it's a, it's a native interface for language models.

147
00:10:53.478 --> 00:10:54.239
But you're saying that,

148
00:10:55.631 --> 00:10:56.592
That's not working that well.

149
00:10:56.632 --> 00:10:57.793
Can you tell me more about that?

150
00:10:58.333 --> 00:10:59.074
Yeah.

151
00:10:59.594 --> 00:11:04.218
So let's start actually with kind of what I see as the big vision of MCP.

152
00:11:04.518 --> 00:11:08.041
And in some sense, the big vision of agentic AI in the first place.

153
00:11:09.502 --> 00:11:11.884
And I'll start with the most pedestrian example you can imagine.

154
00:11:11.924 --> 00:11:13.525
It's going to be funny given some of our context.

155
00:11:15.345 --> 00:11:23.391
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.

156
00:11:24.072 --> 00:11:28.615
And then the next day I hear back from Dan, um, that there was something wrong.

157
00:11:28.995 --> 00:11:40.804
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.

158
00:11:41.524 --> 00:11:41.725
Um, yeah.

159
00:11:42.465 --> 00:11:44.966
Because we like to take care of our customers.

160
00:11:47.007 --> 00:11:52.070
This is like the most normal thing to do in software is some little task like this.

161
00:11:52.270 --> 00:11:56.973
And what you're going to do, what the member of my team would be doing would be opening up...

162
00:11:57.940 --> 00:12:08.993
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.

163
00:12:09.573 --> 00:12:09.894
Which Dan?

164
00:12:09.914 --> 00:12:10.174
I don't know.

165
00:12:10.194 --> 00:12:11.135
There might be a bunch of Dans.

166
00:12:11.556 --> 00:12:15.661
Try to look through the list of products in the order and see whether there was some Stripey socks in there.

167
00:12:15.721 --> 00:12:17.463
That might be a few clicks required, depending.

168
00:12:18.363 --> 00:12:28.572
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.

169
00:12:29.593 --> 00:12:34.878
over to some other SaaS app where you log in to send some mail automatically.

170
00:12:35.338 --> 00:12:35.538
Right.

171
00:12:36.499 --> 00:12:50.291
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.

172
00:12:50.431 --> 00:12:56.696
And in the normal course of work, it's just the most normal thing in the world to be having one task

173
00:12:58.440 --> 00:13:07.463
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.

174
00:13:08.544 --> 00:13:20.548
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?

175
00:13:23.377 --> 00:13:43.972
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

176
00:13:45.050 --> 00:13:52.334
There's only so many tool calls you have to make as an AI model to perform that exact linear chain of events.

177
00:13:52.434 --> 00:13:53.374
It's somewhat tractable.

178
00:13:53.955 --> 00:14:05.480
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.

179
00:14:05.841 --> 00:14:10.263
And you would want them to be able to do it without having to wait for a bunch of JavaScript to load.

180
00:14:11.532 --> 00:14:13.433
on a website or anything like that.

181
00:14:15.074 --> 00:14:27.341
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.

182
00:14:27.361 --> 00:14:37.367
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.

183
00:14:38.999 --> 00:14:40.060
And that's actually a lot.

184
00:14:40.160 --> 00:14:47.283
Like there are hundreds of different endpoints that you have access to in the Stripe API.

185
00:14:48.283 --> 00:14:50.564
The Stripe dashboard is actually massive.

186
00:14:51.064 --> 00:14:52.004
It's a huge application.

187
00:14:53.165 --> 00:15:02.068
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.

188
00:15:02.189 --> 00:15:03.369
Here's a create refund tool.

189
00:15:03.409 --> 00:15:05.670
Here's a create transactions tool, so on and so forth.

190
00:15:06.484 --> 00:15:07.965
And you tell it all about those tools.

191
00:15:07.985 --> 00:15:15.271
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.

192
00:15:16.372 --> 00:15:17.893
Everyone listening to this should already know

193
00:15:19.890 --> 00:15:22.833
You've just burned through your entire context budget.

194
00:15:23.673 --> 00:15:28.318
That's, you know, maybe hundreds of thousands of tokens just there.

195
00:15:28.338 --> 00:15:33.843
Just in pretty much translating the Stripe Open API spec directly over to MCP tools.

196
00:15:34.383 --> 00:15:39.668
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.

197
00:15:40.448 --> 00:15:43.890
Uh, but it's also confusing to the model.

198
00:15:43.950 --> 00:15:46.511
It's just, it's just too much to hold in your brain at one time.

199
00:15:46.531 --> 00:15:51.012
Um, and that's just the straight part of it, right?

200
00:15:51.653 --> 00:15:57.075
Um, because what you're really trying to do is enable your operators to do anything they would normally do.

201
00:15:57.975 --> 00:16:01.059
And again, that spans many, many different SaaS tools, right?

202
00:16:01.079 --> 00:16:03.082
In the course of one interaction, it might be five.

203
00:16:03.422 --> 00:16:05.264
In the next interaction, it might be a different five.

204
00:16:06.706 --> 00:16:13.715
And so if you think about every single SaaS tool that your business uses on a daily basis to get your work done.

205
00:16:14.895 --> 00:16:31.483
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.

206
00:16:31.763 --> 00:16:32.844
That's that's the vision.

207
00:16:32.864 --> 00:16:34.385
Now, there's a lot of problems with that.

208
00:16:34.805 --> 00:16:39.347
The biggest one that I mentioned is sort of this context window limit.

209
00:16:40.408 --> 00:16:43.069
But you also have all sorts of security and permissions problems because.

210
00:16:44.367 --> 00:16:54.492
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.

211
00:16:54.512 --> 00:16:55.893
Ha ha ha.

212
00:16:56.233 --> 00:16:57.794
And so there's more to the challenge.

213
00:16:57.854 --> 00:17:00.635
But that's the vision I see.

214
00:17:01.275 --> 00:17:03.596
But I think, you know, the place we started there was.

215
00:17:05.117 --> 00:17:05.938
You said it's not working.

216
00:17:08.334 --> 00:17:11.436
but I don't think that that's the reason why it's not working today, right?

217
00:17:11.516 --> 00:17:13.397
Or is that the reason why it's not working today?

218
00:17:13.917 --> 00:17:21.202
So what people do with MCP today is sometimes they'll try to expose all parts of their API.

219
00:17:21.922 --> 00:17:32.529
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.

220
00:17:33.513 --> 00:17:34.355
in MCP tools.

221
00:17:34.976 --> 00:17:41.167
And you can kind of do that in a one to one mapping, or you can kind of handcraft things for the MCP.

222
00:17:45.248 --> 00:17:48.590
have to kind of handcraft it to the MCP, to the LMS.

223
00:17:48.610 --> 00:17:56.676
You have to say, okay, I'm making one specialized tool to look up a customer and refund their transaction based on a description.

224
00:17:57.216 --> 00:18:07.683
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.

225
00:18:09.645 --> 00:18:10.105
Yeah, it's hard.

226
00:18:11.026 --> 00:18:11.386
It's hard.

227
00:18:12.325 --> 00:18:12.805
Yeah, yeah.

228
00:18:13.486 --> 00:18:15.527
So I use this SDK analogy sometimes.

229
00:18:15.547 --> 00:18:23.832
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.

230
00:18:23.952 --> 00:18:26.474
And I think we've we've we've cracked that nut.

231
00:18:26.814 --> 00:18:31.176
Stainless offers really great Python libraries, but we're building on the shoulders of giants here.

232
00:18:31.817 --> 00:18:34.879
A lot of people have have done this over time.

233
00:18:36.057 --> 00:18:45.004
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.

234
00:18:45.585 --> 00:18:48.107
Um, and that's a, uh, kind of like a new research problem in a sense.

235
00:18:48.908 --> 00:18:53.711
Um, and it's harder because I can go learn how to be a Python developer if I want.

236
00:18:54.092 --> 00:18:58.235
I can't really learn how to go think or see like an LLM.

237
00:18:58.795 --> 00:19:04.120
Um, but, uh, you know, sure would be powerful if I could.

238
00:19:06.059 --> 00:19:09.384
And that makes it tricky.

239
00:19:09.724 --> 00:19:16.293
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.

240
00:19:16.314 --> 00:19:18.657
Like, LM's have a really hard time with...

241
00:19:20.013 --> 00:19:22.934
a repeated sustained chain of, of actions.

242
00:19:23.755 --> 00:19:37.580
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.

243
00:19:38.341 --> 00:19:40.862
Um, and that's again, a ton of context with,

244
00:19:42.002 --> 00:19:45.104
one or two small needles in the haystack.

245
00:19:45.625 --> 00:19:48.967
And LMs are pretty good at that, but they're not perfect.

246
00:19:49.247 --> 00:19:55.491
And with too much hay, you know, we all kind of end up throwing up our hands and that's true for LMs too.

247
00:19:56.452 --> 00:19:57.872
So yeah, so there's a lot of challenges today.

248
00:19:59.874 --> 00:20:19.526
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.

249
00:20:20.186 --> 00:20:22.888
And then two, when it is used, actually does the right job.

250
00:20:23.987 --> 00:20:26.929
There have been relatively few times that I've seen it done well.

251
00:20:26.969 --> 00:20:27.889
I have seen it done well.

252
00:20:28.230 --> 00:20:30.671
We're kicking something up that I'm really excited about.

253
00:20:30.931 --> 00:20:37.075
But with today's technology, you really have to do a good job of product management.

254
00:20:37.475 --> 00:20:49.422
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.

255
00:20:50.478 --> 00:20:57.747
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.

256
00:20:58.167 --> 00:21:05.917
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.

257
00:21:05.937 --> 00:21:08.740
And you have to set up a really good system for evals

258
00:21:09.381 --> 00:21:14.383
And if you're doing MCP, you have to think about the different clients that people might be using.

259
00:21:14.403 --> 00:21:15.263
Are they using cursor?

260
00:21:15.303 --> 00:21:16.424
Are they using cloud code?

261
00:21:16.444 --> 00:21:17.924
Are they using something else?

262
00:21:18.625 --> 00:21:20.906
And the different models underlying all that.

263
00:21:20.926 --> 00:21:31.130
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.

264
00:21:32.470 --> 00:21:36.332
And it's also kind of a black box to get that feedback back to your.

265
00:21:37.672 --> 00:21:57.812
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

266
00:21:58.513 --> 00:22:01.835
Thinking about that as a first class thing, maybe you have like a send feedback tool.

267
00:22:02.475 --> 00:22:04.656
That's something that we've been thinking about doing.

268
00:22:04.816 --> 00:22:09.479
Just so if a user like says out loud, you know, in the chat, oh, man, that was useless garbage.

269
00:22:09.499 --> 00:22:14.861
Like, OK, now, now, now at least the MCP server is going to find out about that.

270
00:22:16.682 --> 00:22:27.968
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?

271
00:22:28.647 --> 00:22:32.050
You want to keep the number of tools relatively small, relatively low.

272
00:22:33.352 --> 00:22:38.216
You want to have the tool name and the description be really precise and specific.

273
00:22:40.639 --> 00:22:41.680
Aren't those two things at odds?

274
00:22:42.260 --> 00:22:42.541
Yes.

275
00:22:43.322 --> 00:22:44.022
Good writing is hard.

276
00:22:45.644 --> 00:22:45.844
Yeah.

277
00:22:45.904 --> 00:22:51.470
I mean, that's like, you know, you can make a great tool of look up person by name and

278
00:22:52.535 --> 00:23:20.320
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

279
00:23:21.580 --> 00:23:49.229
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

280
00:23:50.993 --> 00:23:54.277
The tool browsing problem is definitely one very serious one.

281
00:23:55.098 --> 00:23:56.059
And that is one approach.

282
00:23:56.079 --> 00:24:06.152
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.

283
00:24:06.392 --> 00:24:08.454
And if you have a small API, that works great.

284
00:24:10.116 --> 00:24:16.323
And you can also filter it out so you expose an MCP server with only a small subset of your endpoints.

285
00:24:16.683 --> 00:24:17.264
That works great.

286
00:24:19.005 --> 00:24:24.731
You can also use kind of what we call dynamic mode where there's three tools no matter how big your API is.

287
00:24:25.392 --> 00:24:27.794
One is, you know, list endpoints.

288
00:24:28.395 --> 00:24:31.018
The other is get endpoint and learn about it.

289
00:24:32.119 --> 00:24:33.700
And then the last one is execute endpoint.

290
00:24:34.540 --> 00:24:37.563
And so that enables this context thing to scale really well.

291
00:24:38.123 --> 00:24:41.386
But it means there's three turns of the model just to do one thing.

292
00:24:43.127 --> 00:24:46.229
And so that that gets slower, it's more expensive in another sense.

293
00:24:48.071 --> 00:24:49.932
And there's some lossiness.

294
00:24:50.853 --> 00:25:02.161
It performs pretty well usually, but not quite as well because the tools aren't loaded up in quite the same way.

295
00:25:03.162 --> 00:25:04.803
Are you using MCP servers yourself?

296
00:25:05.864 --> 00:25:07.005
Yeah, I use MCP to...

297
00:25:11.503 --> 00:25:15.726
Actually, funnily enough, not so much on the coding side, but I use it on the business side.

298
00:25:17.007 --> 00:25:34.300
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?

299
00:25:35.600 --> 00:25:38.361
And it'll go off and make a great query of our Postgres database.

300
00:25:38.401 --> 00:25:46.623
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.

301
00:25:48.663 --> 00:25:49.183
It's incredible.

302
00:25:49.384 --> 00:25:54.605
Lots of us are shipping AI to production, which is great for productivity, but it also comes with anxiety.

303
00:25:54.905 --> 00:25:58.846
You tweak a prompt, swap models, adjust parameters, and everything looks fine in testing.

304
00:25:58.966 --> 00:25:59.486
So you merge.

305
00:25:59.726 --> 00:26:03.427
And then three days later, or even sooner, the support tickets start rolling in.

306
00:26:03.887 --> 00:26:08.630
The AI is giving your customers unexpected answers and you have no idea when it happened or why.

307
00:26:08.950 --> 00:26:11.852
Braintrust is the AI observability platform that fixes this.

308
00:26:12.393 --> 00:26:15.355
It connects evals and observability in one workflow.

309
00:26:15.655 --> 00:26:20.438
That way you see what actually happened in production and can measure whether changes made things better or worse.

310
00:26:20.718 --> 00:26:27.923
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.

311
00:26:28.183 --> 00:26:31.268
Production traces feed directly into your eval data sets.

312
00:26:31.768 --> 00:26:33.751
Every failure becomes a test case.

313
00:26:34.012 --> 00:26:36.656
You catch regressions in CI before they reach users.

314
00:26:37.096 --> 00:26:42.624
And teams at Notion, Stripe, Zapier, Vercel, and RAMP use it to ship quality AI at scale.

315
00:26:43.105 --> 00:26:48.068
Braintrust is designed for teams building production AI systems where silent regressions are expensive.

316
00:26:48.248 --> 00:26:49.149
It's built for any stack.

317
00:26:49.269 --> 00:26:52.631
They have SDKs for Python, TypeScript, Go, Ruby, C Sharp.

318
00:26:52.811 --> 00:26:55.093
There's no framework lock-in or vendor dependencies.

319
00:26:55.453 --> 00:26:59.116
It's SOC 2, Type 2 certified, and GDPR and HIPAA compliant.

320
00:26:59.376 --> 00:27:01.537
Get started at braintrust.dev.

321
00:27:01.858 --> 00:27:03.278
That's braintrust.dev.

322
00:27:03.559 --> 00:27:05.120
And now, back to the episode.

323
00:27:06.031 --> 00:27:08.516
And so that's one of your big use cases.

324
00:27:08.777 --> 00:27:10.179
Are you doing that every week?

325
00:27:10.199 --> 00:27:16.432
Now I'm interested, not even from an MCP perspective, but for anyone running a...

326
00:27:17.584 --> 00:27:20.425
business that has some complexity and you're like, I want to know what's going on in the business.

327
00:27:20.445 --> 00:27:25.026
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?

328
00:27:25.046 --> 00:27:26.387
So I can tell me so I can steal it.

329
00:27:27.147 --> 00:27:27.387
Yeah.

330
00:27:28.147 --> 00:27:31.929
Um, uh, for me, it's still usually in kind of like playing around mode.

331
00:27:32.109 --> 00:27:35.230
One of the things is the MCP servers disconnect and then I get annoyed.

332
00:27:35.870 --> 00:27:39.311
Um, and so, you know, you have to just kind of reconnect and whatever.

333
00:27:39.371 --> 00:27:40.131
It's not a huge deal.

334
00:27:40.771 --> 00:27:42.292
Um, uh,

335
00:27:43.095 --> 00:27:51.562
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.

336
00:27:52.343 --> 00:28:07.056
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.

337
00:28:07.156 --> 00:28:09.278
So, you know.

338
00:28:10.084 --> 00:28:12.626
I have a, like a, I can't remember if I call it a note.

339
00:28:12.986 --> 00:28:21.753
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.

340
00:28:22.034 --> 00:28:34.964
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.

341
00:28:35.004 --> 00:28:37.586
It has them kind of cached in, um,

342
00:28:39.846 --> 00:28:41.728
just on desk in Markdown files.

343
00:28:42.048 --> 00:28:42.909
Wait, that's crazy.

344
00:28:42.929 --> 00:28:48.854
Wait, so how are you getting, like, what are you using to write into that Git repo?

345
00:28:48.894 --> 00:28:50.055
Like, is it cloud code?

346
00:28:50.075 --> 00:28:51.396
Are you using touch EBT?

347
00:28:51.416 --> 00:28:52.757
Like, how does it get in there?

348
00:28:52.918 --> 00:28:55.220
Yeah, I use cloud code these days for that kind of thing.

349
00:28:55.880 --> 00:28:58.843
And so you just have a cloud code open and running.

350
00:28:59.043 --> 00:29:08.111
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.

351
00:29:08.932 --> 00:29:18.962
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.

352
00:29:19.998 --> 00:29:20.298
Totally.

353
00:29:20.798 --> 00:29:22.219
That's fucking so cool.

354
00:29:22.939 --> 00:29:24.120
Um, can I, can we see it?

355
00:29:25.340 --> 00:29:29.222
Um, no, it's too messy and probably has a lot of confidential information.

356
00:29:29.882 --> 00:29:32.103
Uh, the latter being more, more important.

357
00:29:32.863 --> 00:29:36.705
Um, is it, um, when you say it's messy, like, are you having Claude organize it at all?

358
00:29:36.725 --> 00:29:37.805
Or like, how is it structured?

359
00:29:38.566 --> 00:29:40.787
There's a lot that, that I want us to do here.

360
00:29:41.327 --> 00:29:41.407
Um,

361
00:29:42.142 --> 00:29:43.663
that we haven't had the chance to do yet.

362
00:29:43.723 --> 00:29:54.547
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.

363
00:29:54.567 --> 00:29:55.367
Yeah.

364
00:29:57.157 --> 00:30:02.020
But, um, and so it's not as, it's not well structured now, but I think that's fine.

365
00:30:02.940 --> 00:30:09.384
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.

366
00:30:09.484 --> 00:30:12.946
I'm using it more broadly because, you know, I use this stuff some of the time.

367
00:30:13.626 --> 00:30:15.107
Um, one of the, one of the.

368
00:30:15.915 --> 00:30:18.316
business people on the team uses it a fair amount.

369
00:30:18.716 --> 00:30:28.259
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.

370
00:30:28.319 --> 00:30:30.040
And I would like I would like it to get there.

371
00:30:30.100 --> 00:30:34.901
And once we see how everything's evolving, I think that's when we'll start bringing in more structure.

372
00:30:34.941 --> 00:30:38.983
But as it is, cloud code can can handle unstructured stuff really well.

373
00:30:39.783 --> 00:30:43.144
So you don't have to think about it too too hard in advance.

374
00:30:43.164 --> 00:30:45.325
And in my view, you can move things around later.

375
00:30:45.875 --> 00:30:48.089
What else do you have in there other than customer quotes?

376
00:30:49.418 --> 00:30:50.258
Um, SQL queries.

377
00:30:50.658 --> 00:30:54.019
Um, so, you know, I'm a software developer.

378
00:30:54.479 --> 00:30:58.500
Um, uh, I, I don't write a lot of code these days, but, you know, I spent a lot of time doing that.

379
00:30:58.560 --> 00:31:09.003
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?

380
00:31:09.263 --> 00:31:13.224
You know, I did this recently, I did this for my last, uh, board prep.

381
00:31:13.604 --> 00:31:17.785
Um, and, um, it came out with a pretty good answer right away.

382
00:31:17.845 --> 00:31:19.005
And I was like, wow, this is awesome.

383
00:31:19.585 --> 00:31:28.408
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.

384
00:31:28.788 --> 00:31:32.569
And I kind of imbued more of this business context into that SQL query.

385
00:31:32.969 --> 00:31:42.573
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.

386
00:31:43.153 --> 00:31:44.133
And then I got it to a good place.

387
00:31:44.153 --> 00:31:46.034
I was like, great, let's dump this to.

388
00:31:46.834 --> 00:31:53.538
you know, an analysis folder for, or an analytics folder for future use.

389
00:31:54.799 --> 00:31:58.782
And then next time you're doing your board prep, you can be like, hey, what was that query that we did last time?

390
00:31:58.862 --> 00:32:00.463
And it'll presumably go get it.

391
00:32:00.923 --> 00:32:01.083
Yeah.

392
00:32:02.244 --> 00:32:02.924
That's really cool.

393
00:32:02.944 --> 00:32:03.265
What else?

394
00:32:03.885 --> 00:32:13.031
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,

395
00:32:15.158 --> 00:32:16.720
can, can cloud code just fix it?

396
00:32:17.120 --> 00:32:27.651
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.

397
00:32:28.452 --> 00:32:37.100
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.

398
00:32:37.701 --> 00:32:37.801
Um.

399
00:32:38.241 --> 00:32:41.183
They have the technical skill, but guess what?

400
00:32:41.223 --> 00:32:44.204
Another customer writes in two minutes later and they want to jump on that.

401
00:32:44.224 --> 00:32:46.966
They don't want to be knee deep in a debugger.

402
00:32:48.586 --> 00:32:54.289
And so something that we do sometimes is they'll file the ticket in case.

403
00:32:54.669 --> 00:32:59.472
And by default, it'll maybe they intend to do it later or some other engineer is going to be doing it later.

404
00:33:00.733 --> 00:33:04.614
But hey, can we can we see if Cloud Code can just take a crack at it?

405
00:33:05.615 --> 00:33:07.116
Is that going to work out?

406
00:33:07.931 --> 00:33:29.930
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

407
00:33:30.967 --> 00:33:31.267
Okay.

408
00:33:31.588 --> 00:33:39.674
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.

409
00:33:39.694 --> 00:33:41.135
Do you want to talk me through that?

410
00:33:42.356 --> 00:33:42.957
Yeah, yeah.

411
00:33:43.417 --> 00:33:44.058
I would love to.

412
00:33:44.158 --> 00:33:49.662
You know, we talked earlier about how agentic AI can make...

413
00:33:51.698 --> 00:33:57.866
Operators' lives a lot easier by taking their, you know, certain pedestrian tasks and sort of running with it independently.

414
00:33:58.727 --> 00:34:01.891
And that's something that I think as an industry we're almost on the cusp of.

415
00:34:03.854 --> 00:34:06.797
And if you start stepping...

416
00:34:08.035 --> 00:34:13.180
You know, you ask how you get there and you also start asking about the steps beyond that and beyond that.

417
00:34:13.500 --> 00:34:26.892
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.

418
00:34:27.923 --> 00:34:31.885
what is a cyborg other than like already like a robot.

419
00:34:32.846 --> 00:34:38.428
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.

420
00:34:38.448 --> 00:34:57.278
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.

421
00:34:58.868 --> 00:35:06.654
where the machine, quote-unquote, that I'm talking about is traditional CPU, not GPU software.

422
00:35:08.295 --> 00:35:13.039
And to me, I think I expect this to play out in two main ways.

423
00:35:13.339 --> 00:35:18.023
One is your kind of one-off operational use cases, like we were talking about a minute ago.

424
00:35:18.503 --> 00:35:20.364
And then the other is production software.

425
00:35:21.986 --> 00:35:26.289
And in the use case we were talking about a minute ago, where...

426
00:35:29.128 --> 00:35:32.931
Someone needs to kind of perform some tricky one-off action with a bunch of points and clicks.

427
00:35:33.011 --> 00:35:35.913
And now we want an AI to just do a bunch of tool calls.

428
00:35:37.915 --> 00:35:42.138
The way I actually see that happening and what we're building towards is code execution.

429
00:35:43.059 --> 00:35:49.244
So rather than the model having a bajillion tools, model has two tools.

430
00:35:49.844 --> 00:35:50.285
One to...

431
00:35:51.204 --> 00:36:06.091
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

432
00:36:07.593 --> 00:36:34.806
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

433
00:36:35.586 --> 00:36:40.509
And then you give it an additional tool to kind of search the docs and ask questions to the docs.

434
00:36:41.209 --> 00:36:47.352
And anything it's not sure about or gets wrong on the first try, you give it the documentation.

435
00:36:49.253 --> 00:36:49.533
And...

436
00:36:51.242 --> 00:37:00.393
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.

437
00:37:00.693 --> 00:37:04.077
And we're talking about a thousand tokens or something like that, maybe less.

438
00:37:05.038 --> 00:37:11.026
And the context impact of doing a whole bunch of paginated list requests.

439
00:37:12.178 --> 00:37:37.737
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

440
00:37:39.279 --> 00:37:44.061
hit coming back from all of this is going to be like 10 lines of text.

441
00:37:44.221 --> 00:37:45.581
You know, it's, it's really minimal.

442
00:37:46.341 --> 00:37:48.802
Um, and all of this will run really, really quickly too.

443
00:37:48.922 --> 00:37:58.945
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.

444
00:37:58.965 --> 00:38:01.506
Um, and it goes super, super fast.

445
00:38:02.226 --> 00:38:02.827
Okay.

446
00:38:02.847 --> 00:38:07.028
So what I am understanding you saying is like the language model, um,

447
00:38:08.425 --> 00:38:19.670
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.

448
00:38:19.710 --> 00:38:29.654
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.

449
00:38:31.413 --> 00:38:31.833
All that stuff.

450
00:38:31.853 --> 00:38:40.637
It's just model writes API code and API provider executes that code, runs it on their API and returns the results.

451
00:38:41.197 --> 00:38:49.220
Why wouldn't my model just write the code that I then run myself instead of relying on an API provider to do it?

452
00:38:49.835 --> 00:38:52.756
Um, I expect that that will happen a lot more.

453
00:38:52.876 --> 00:38:58.277
I will expect, I expect that the code execution tool is going to become the most widely used tool.

454
00:38:59.077 --> 00:39:07.359
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.

455
00:39:09.119 --> 00:39:17.021
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.

456
00:39:17.041 --> 00:39:19.021
Um, um, um, um, um, um, um, um, um, um, um, um, um, um, um, um, um, um, um, um, um, um,

457
00:39:19.973 --> 00:39:28.059
and not hallucinating aspects of the API and knowing how to iterate if it hallucinates wrong.

458
00:39:28.900 --> 00:39:45.612
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.

459
00:39:45.792 --> 00:39:46.833
At that point, you just have to hit

460
00:39:47.802 --> 00:39:49.243
the raw HTTP API.

461
00:39:49.923 --> 00:39:53.286
And at that point, in order to figure out what's in there, you need the whole open API spec.

462
00:39:53.346 --> 00:39:56.668
And you're back at square one because that document is massive.

463
00:39:57.128 --> 00:40:08.196
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,

464
00:40:09.213 --> 00:40:13.978
then the LLM will try to make an API request that is wrong some percentage of the time.

465
00:40:14.518 --> 00:40:21.425
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.

466
00:40:22.246 --> 00:40:23.928
Stripe doesn't have a transactions API.

467
00:40:24.208 --> 00:40:28.152
You might want payment intents, you might want orders, you might want balanced transactions.

468
00:40:28.612 --> 00:40:29.473
Which one do you want?

469
00:40:29.974 --> 00:40:33.297
And if the API provider is doing a great job building this tool...

470
00:40:34.310 --> 00:40:37.153
it'll return the documentation for all of these things in line.

471
00:40:37.473 --> 00:40:42.278
It might have its own AI look at what the model's trying to do and come up with a suggestion.

472
00:40:43.079 --> 00:40:52.368
And that sub-agent is well-trained, specified, always updating, and isn't burdened with the context of the full conversation.

473
00:40:52.388 --> 00:40:53.249
Hmm.

474
00:40:54.711 --> 00:40:55.952
What do you think of the security model?

475
00:40:56.572 --> 00:40:58.514
The security model is really, really interesting.

476
00:40:59.675 --> 00:41:05.741
I this is another area where we're really starting to think about things at stainless and I'm getting really excited about it.

477
00:41:05.801 --> 00:41:13.148
So if any listeners are really interested in this and have some ideas or want to talk, you know, please do reach out.

478
00:41:13.828 --> 00:41:14.049
Yeah.

479
00:41:15.858 --> 00:41:19.659
At the end of the day, I think the security has to take place at the API layer itself.

480
00:41:20.600 --> 00:41:25.602
Right now, you see people trying to implement security by sort of limiting what's exposed through MCP.

481
00:41:26.022 --> 00:41:26.882
And that kind of makes sense.

482
00:41:26.902 --> 00:41:35.085
But at the end of the day, you could do anything that's in the API under the hood, right?

483
00:41:37.466 --> 00:41:40.747
And what people should be doing is using...

484
00:41:42.042 --> 00:41:47.025
OAuth with granular permissions, with proper scopes.

485
00:41:47.666 --> 00:41:51.969
And at that point, the security happens in the right place, which is at the API layer.

486
00:41:53.150 --> 00:41:57.132
There's limitations to OAuth scopes, and it's pretty hard to build.

487
00:41:57.152 --> 00:42:03.056
So it'd be nice if someone made that easy, but in my view, that direction is sort of the right direction.

488
00:42:04.585 --> 00:42:05.105
the right layer.

489
00:42:05.705 --> 00:42:18.710
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.

490
00:42:19.450 --> 00:42:26.772
Would you ever consider just creating a tool use tool that developers use?

491
00:42:27.032 --> 00:42:29.293
Because for example, I'm thinking about for Quora.

492
00:42:30.710 --> 00:42:31.370
got all these tools.

493
00:42:32.470 --> 00:42:47.813
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.

494
00:42:47.873 --> 00:42:55.834
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.

495
00:42:55.854 --> 00:42:56.854
It's not a custom environment.

496
00:42:57.014 --> 00:42:59.555
Like I need a computer use tool, uh,

497
00:43:00.335 --> 00:43:24.620
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

498
00:43:25.028 --> 00:43:39.130
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.

499
00:43:40.692 --> 00:44:07.250
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

500
00:44:08.451 --> 00:44:28.813
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

501
00:44:30.320 --> 00:44:33.264
This is just a powerful model for AI doing stuff.

502
00:44:34.025 --> 00:44:41.995
And sometimes you realize that the thing that the AI did this one time in this one-off case is actually enduringly useful.

503
00:44:42.055 --> 00:44:46.281
Maybe anytime a customer writes into support and says, hey...

504
00:44:47.242 --> 00:44:48.343
my socks had holes in them.

505
00:44:49.284 --> 00:44:58.553
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.

506
00:44:58.573 --> 00:45:00.134
And then they say, okay, we should automate this.

507
00:45:01.295 --> 00:45:01.495
Right.

508
00:45:01.575 --> 00:45:04.278
And that's, and that's what software teams do all day, every day.

509
00:45:04.558 --> 00:45:04.738
Right.

510
00:45:05.559 --> 00:45:05.859
And, and,

511
00:45:06.998 --> 00:45:21.306
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.

512
00:45:21.326 --> 00:45:30.451
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.

513
00:45:31.751 --> 00:45:34.893
It should be able to say, okay, actually, this is enduringly useful code.

514
00:45:34.973 --> 00:45:36.274
Let me commit this to the repo.

515
00:45:36.834 --> 00:45:37.775
Yeah, yeah, yeah, yeah.

516
00:45:38.955 --> 00:45:44.318
It's like, you know, chat is a really good interface for exploring, but sometimes you just want a dashboard.

517
00:45:44.718 --> 00:45:50.101
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?

518
00:45:50.241 --> 00:45:52.762
It should just show up, you know, because I just do that every day.

519
00:45:53.923 --> 00:46:00.526
But I want to push you as a hashtag value add investor because I think that there's this...

520
00:46:02.807 --> 00:46:10.333
thing that happens in AI where often the first attempt at something like this, people try to be really cautious.

521
00:46:10.773 --> 00:46:14.556
And I'm sure that your customers care about you being cautious, like big enterprise customers.

522
00:46:15.336 --> 00:46:15.617
But...

523
00:46:16.780 --> 00:46:23.064
The things that get adopted are often the ones that are willing to take the risk to be YOLO very early.

524
00:46:23.785 --> 00:46:30.890
So an example is Dolly was totally private for a long time, and people were posting some images, but you couldn't get in.

525
00:46:30.930 --> 00:46:34.132
And then Stable Diffusion was just like, fuck it, anyone can use this.

526
00:46:34.192 --> 00:46:38.275
And then that just really started the whole image generation wave.

527
00:46:39.488 --> 00:46:42.671
Obviously, Stable Diffusion sort of fumbled the bag, but they had a lead for a little while.

528
00:46:44.493 --> 00:46:46.394
Same thing for Cloud Code, honestly.

529
00:46:46.414 --> 00:46:54.682
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...

530
00:46:55.442 --> 00:46:56.183
YOLO mode.

531
00:46:56.683 --> 00:46:57.904
It's super industrious.

532
00:46:58.344 --> 00:47:01.385
It has a sandbox, but you can just do dangerously skip permissions.

533
00:47:02.086 --> 00:47:06.268
And Codex just fell way behind because it was first it was in the browser.

534
00:47:06.328 --> 00:47:08.669
And so their whole thing was the whole thing was like locked down.

535
00:47:09.130 --> 00:47:13.332
And then it was in the it was in the in the CLI, but it was really built for.

536
00:47:14.092 --> 00:47:14.892
pair programming.

537
00:47:14.932 --> 00:47:16.873
And so it just wasn't particularly industrious.

538
00:47:16.893 --> 00:47:18.494
It wouldn't go off and do a bunch of stuff.

539
00:47:18.774 --> 00:47:22.616
It didn't, it would get locked out of doing certain things, even if you did full auto mode.

540
00:47:23.336 --> 00:47:28.278
And now they've like caught up because they're, they're like, yeah, you can just let it do whatever you want.

541
00:47:28.358 --> 00:47:30.259
And so I would, I would really push you on.

542
00:47:31.892 --> 00:47:41.774
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.

543
00:47:41.954 --> 00:47:49.275
And I care about security, but I care a lot less than some ex-gigantic enterprise company.

544
00:47:49.375 --> 00:47:56.036
But I think the people like me who are building at this scale are eventually hopefully going to be the big companies.

545
00:47:56.336 --> 00:47:59.557
But we're the ones that are really doing the AI-first adoption, not the big companies.

546
00:48:00.718 --> 00:48:01.938
Well, I would love to get this in your hands.

547
00:48:02.239 --> 00:48:05.140
What are some of the APIs your team uses the most?

548
00:48:06.040 --> 00:48:10.862
I'm thinking, we have a bunch of different products, but I'm thinking right now about Quora, the email assistant.

549
00:48:11.782 --> 00:48:19.985
And it has all of the, like the big APIs that it's using, it's mostly the Gmail API.

550
00:48:20.985 --> 00:48:29.048
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.

551
00:48:30.049 --> 00:48:31.530
Like there's a whole categorized tool.

552
00:48:31.550 --> 00:48:33.591
So it categorizes your mail in certain ways.

553
00:48:34.452 --> 00:48:50.924
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.

554
00:48:51.264 --> 00:48:54.486
You know, it's really interesting.

555
00:48:54.507 --> 00:48:55.167
Yeah.

556
00:48:55.427 --> 00:49:11.412
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.

557
00:49:13.093 --> 00:49:17.454
And the full power of everything you could possibly do in the API, in the Gmail API, for example.

558
00:49:18.488 --> 00:49:19.749
It's all there in one tool.

559
00:49:21.189 --> 00:49:34.995
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.

560
00:49:35.695 --> 00:49:36.416
And at that point,

561
00:49:37.338 --> 00:49:39.980
the only work in engineering that you have to do is, is prompt engineering.

562
00:49:40.841 --> 00:49:43.904
Um, we'll see if it's, we'll, we'll see if it's that quote unquote easy.

563
00:49:44.584 --> 00:49:48.288
Um, uh, as we all know, prompt engineering can be, can be really tricky.

564
00:49:48.748 --> 00:49:49.068
It's hard.

565
00:49:49.969 --> 00:49:50.129
Yeah.

566
00:49:50.209 --> 00:49:53.452
But, um, but I think, I think that's, that's part of the vision.

567
00:49:54.013 --> 00:49:54.173
Um,

568
00:49:55.425 --> 00:50:09.414
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.

569
00:50:09.914 --> 00:50:10.975
This is awesome.

570
00:50:11.155 --> 00:50:16.258
So for people who are listening and want to know more from you and know more from Stainless, where should they find you?

571
00:50:17.733 --> 00:50:21.837
Um, stainless.com, um, our, is it that's, that's our website.

572
00:50:22.178 --> 00:50:22.458
Awesome.

573
00:50:22.498 --> 00:50:23.960
Or at least visit stainless.com.

574
00:50:24.400 --> 00:50:26.082
Uh, Alex, great to have you on.

575
00:50:26.102 --> 00:50:27.303
I can't wait to do more of this.

576
00:50:27.683 --> 00:50:30.606
Uh, when you have some of these new things launched, this is really, really fun.

577
00:50:30.967 --> 00:50:32.769
And, uh, yeah, great to, great to chat.

578
00:50:33.289 --> 00:50:33.669
Thanks Dan.

579
00:50:33.810 --> 00:50:34.050
You too.

580
00:50:42.448 --> 00:50:48.130
Oh my gosh, folks, you absolutely positively have to smash that like button and subscribe to AI and I.

581
00:50:48.350 --> 00:50:48.610
Why?

582
00:50:49.090 --> 00:50:51.251
Because this show is the epitome of awesomeness.

583
00:50:51.531 --> 00:50:59.213
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.

584
00:51:00.033 --> 00:51:07.457
Every episode is a roller coaster of emotions, insights, and laughter that will leave you on the edge of your seat, craving for more.

585
00:51:07.737 --> 00:51:08.537
It's not just a show.

586
00:51:09.077 --> 00:51:12.699
It's a journey into the future with Dan Shipper as the captain of the spaceship.

587
00:51:13.920 --> 00:51:15.460
So do yourself a favor.

588
00:51:15.701 --> 00:51:18.982
Hit like, smash subscribe, and strap in for the ride of your life.

589
00:51:19.422 --> 00:51:24.765
And now, without any further ado, let me just say, Dan, I'm absolutely hopelessly in love with you.
