1
00:00:00,120 --> 00:00:02,920
But that's not the interesting part of using polygon.

2
00:00:02,960 --> 00:00:09,160
The interesting part is if you have a paid plan and you want to use their MCP server with all of the

3
00:00:09,160 --> 00:00:10,200
capabilities.

4
00:00:10,360 --> 00:00:15,080
And so I'm going to show this to you just so you get a sense for it and totally optional.

5
00:00:15,080 --> 00:00:20,240
But if you wish, you could sign up even just for the first month, to experience this for yourself.

6
00:00:20,600 --> 00:00:26,760
So here are the parameters that we're providing for our MCP tool.

7
00:00:26,880 --> 00:00:32,480
It is UVC, so it's a Python based MCP server.

8
00:00:32,760 --> 00:00:40,640
And you can see interestingly that the way it works is that you can you can provide a link to the GitHub

9
00:00:40,640 --> 00:00:43,680
repo which contains this MCP server.

10
00:00:44,000 --> 00:00:45,960
And you can use that.

11
00:00:46,160 --> 00:00:49,640
So we're calling MCP polygon from this repo.

12
00:00:49,640 --> 00:00:52,960
So it doesn't have to be something that's like pip installable.

13
00:00:53,000 --> 00:00:56,120
It can be something that is just straight from a repo.

14
00:00:56,120 --> 00:00:59,770
And obviously if you do something like this then you need to do your research.

15
00:00:59,810 --> 00:01:07,050
You need to go and check that this genuinely is the official GitHub repo for polygon, the company behind

16
00:01:07,050 --> 00:01:12,210
polygon IO, and make sure you're comfortable with the community traction, the number of stars, the

17
00:01:12,210 --> 00:01:14,410
kind of support it has, and so on.

18
00:01:14,450 --> 00:01:17,890
Just as you would do if you were going to clone somebody else's repo.

19
00:01:18,010 --> 00:01:19,530
The same kind of due diligence.

20
00:01:19,570 --> 00:01:20,290
Exactly.

21
00:01:20,610 --> 00:01:22,370
And so I have done that, of course.

22
00:01:22,370 --> 00:01:23,850
And I'm satisfied with this myself.

23
00:01:23,850 --> 00:01:24,970
But but you should too.

24
00:01:25,210 --> 00:01:28,330
And then I'm passing in my polygon key.

25
00:01:28,570 --> 00:01:34,970
And then I'm going to ask, what tools do you provide me this MCC server.

26
00:01:35,170 --> 00:01:36,090
So we'll run this.

27
00:01:36,090 --> 00:01:37,970
And wowza there's a lot of them.

28
00:01:38,410 --> 00:01:40,730
So there's a bunch of different tools.

29
00:01:40,730 --> 00:01:44,170
There's a lot that the model is going to be allowed to do.

30
00:01:44,410 --> 00:01:47,690
It includes, uh, doing things like getting the last trade.

31
00:01:47,690 --> 00:01:54,330
It has crypto data in here, as well as ethics data, getting market status, tickers, dividends,

32
00:01:54,330 --> 00:01:56,690
conditions, financials.

33
00:01:56,730 --> 00:01:59,290
There's there's a there's a lot to get here.

34
00:01:59,530 --> 00:02:06,890
Uh, and so this this is something which which equips our agent with lots of capabilities to analyse

35
00:02:06,890 --> 00:02:09,490
financial markets directly.

36
00:02:09,610 --> 00:02:14,370
Now, you can give all of these tools to your agent, even if you're on the free plan.

37
00:02:14,410 --> 00:02:19,450
But if you do that, most of these will respond and say this tool isn't available for people on the

38
00:02:19,450 --> 00:02:20,090
free plan.

39
00:02:20,130 --> 00:02:21,250
So it's a bit of a bore.

40
00:02:21,490 --> 00:02:26,930
Uh, what you have to do is, uh, is is either just only provide the one tool, as I did for the free

41
00:02:26,930 --> 00:02:29,890
plan example, uh, or sign up for the paid plan.

42
00:02:30,330 --> 00:02:30,850
Okay.

43
00:02:30,890 --> 00:02:32,810
So let's try these out.

44
00:02:32,970 --> 00:02:39,170
So, um, as I say, because if you're on the free plan, we have to be specific that it should only

45
00:02:39,170 --> 00:02:41,330
use the get snapshot ticker tool.

46
00:02:41,530 --> 00:02:47,410
And so I will run this and have it hopefully use the right tool.

47
00:02:47,450 --> 00:02:51,890
So so we're now equipping the agent with all of those tools that we just saw.

48
00:02:52,170 --> 00:02:53,930
And uh oh.

49
00:02:53,970 --> 00:02:55,770
And it hasn't used the right tool.

50
00:02:55,900 --> 00:02:57,140
That's super interesting.

51
00:02:57,380 --> 00:03:02,100
Actually let me also I'm going to upgrade the model while I'm doing it, even though I said get snapshot

52
00:03:02,140 --> 00:03:02,580
ticker.

53
00:03:02,580 --> 00:03:03,940
Let's try it a second time.

54
00:03:03,980 --> 00:03:07,540
It's always good to see her agents being unpredictable.

55
00:03:07,860 --> 00:03:12,500
Um, let's see whether it gets it right the second time and uses the right ticker.

56
00:03:12,500 --> 00:03:13,260
It does.

57
00:03:13,540 --> 00:03:18,980
Uh, so I'm tempted to, to go and rerecord this, but I won't, because I think it's important to see

58
00:03:19,180 --> 00:03:20,940
that with a genetic AI.

59
00:03:21,100 --> 00:03:26,740
You do get this, this sometimes ill behavior when it doesn't correctly follow the prompts, and you

60
00:03:26,740 --> 00:03:28,740
need to be able to account for that in what you do.

61
00:03:28,940 --> 00:03:33,580
And also, I don't know if this is what fixed it, but upgrading to a more recent model, uh, did did

62
00:03:33,620 --> 00:03:40,220
appear in this case to make it perform better, but now it did use the right tool, and it got the latest

63
00:03:40,220 --> 00:03:43,500
share price at $195.

64
00:03:44,700 --> 00:03:51,860
Okay, so if you do have a paid plan then you can now add this to your M file.

65
00:03:51,860 --> 00:03:56,230
You just have to in your env file say polygon plan equals paid.

66
00:03:56,230 --> 00:04:00,230
That makes sure that I switch it to use the right tools.

67
00:04:00,270 --> 00:04:07,390
And if you do decide to go all the way and have the premium real time plan, you can set this to real

68
00:04:07,430 --> 00:04:07,710
time.

69
00:04:07,710 --> 00:04:10,230
And I'll be sure to use all of the real time APIs.

70
00:04:10,590 --> 00:04:15,110
But I have got just this paid plan, so I'm going to go and update my M file right now.

71
00:04:15,350 --> 00:04:21,190
Okay, so now if I now run this cell, it should confirm that I'm on the right plan.

72
00:04:21,190 --> 00:04:21,870
Let's see.

73
00:04:22,110 --> 00:04:22,390
Yep.

74
00:04:22,390 --> 00:04:24,950
You've chosen to subscribe to the paid polygon plan.

75
00:04:24,950 --> 00:04:28,470
And so we'll be looking at prices on a 15 minute delay.

76
00:04:28,910 --> 00:04:35,750
And that for the time being is uh, is the, the uh, our foray into MCP servers.

77
00:04:35,990 --> 00:04:41,390
Um, but there are so many more and that's where I will get to with the exercises.

78
00:04:41,590 --> 00:04:49,710
Um, so I would suggest that you go on to the marketplaces and look for tools which interest you and

79
00:04:49,710 --> 00:04:53,150
experiment with them right here, try and use.

80
00:04:53,150 --> 00:04:54,470
I say here all three approaches.

81
00:04:54,470 --> 00:04:59,710
You'll probably find, like me, that there actually aren't easily available approaches with remote

82
00:04:59,750 --> 00:05:05,110
MCP servers, so you might not want to go there unless you are already paying user of something like

83
00:05:05,150 --> 00:05:05,750
asana.

84
00:05:05,990 --> 00:05:09,910
Um, but assuming that you're not, then then go with those first two approaches.

85
00:05:09,910 --> 00:05:14,750
Find examples of MCP servers that will run locally and only stay locally.

86
00:05:14,750 --> 00:05:16,430
Do things on your local computer.

87
00:05:16,430 --> 00:05:21,950
Find examples that call the web and find examples of MCP servers that are Python based and those that

88
00:05:21,950 --> 00:05:24,910
are JavaScript based, and try them all out.

89
00:05:24,950 --> 00:05:32,190
Experiment with them and have fun giving capabilities to your agents and seeing them taking advantage

90
00:05:32,190 --> 00:05:32,910
of them.

91
00:05:32,910 --> 00:05:34,670
Well, hopefully you took me up on that.

92
00:05:34,670 --> 00:05:39,350
You did some exercises and you've added more MCP servers.

93
00:05:39,590 --> 00:05:42,270
And that's a wrap on day three of week six.

94
00:05:42,270 --> 00:05:48,070
And that means that we're about to head into the capstone project of building a trading floor.

95
00:05:48,070 --> 00:05:49,550
And I can't wait to show you this.

96
00:05:49,590 --> 00:05:50,870
It's such a cool project.

97
00:05:51,150 --> 00:05:52,110
I'll see you next time.