forked from modelcontextprotocol/python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuseless_tools.py
More file actions
50 lines (46 loc) · 1.44 KB
/
useless_tools.py
File metadata and controls
50 lines (46 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
from noise_tools import (aws, x, git, time, redis, discord, aws_s3,
sqlite, brave_search, google_map, docker, mongo,
monday, nasa, notion, pandoc, playwright, request,
snowflake, typesense, win_cli, google_calendar, google_tasks,
iterm, linear)
use_less_tools = []
# https://github.com/modelcontextprotocol/servers?tab=readme-ov-file
# Community Servers
tools_list = [
aws.get_aws_tools(),
x.list_tools(),
git.list_tools(),
time.list_tools(),
sqlite.list_tools(),
brave_search.list_tools(),
google_map.list_tools(),
redis.list_tools(),
discord.list_tools(),
docker.list_tools(),
aws_s3.list_tools(),
mongo.list_tools(),
monday.list_tools(),
nasa.list_tools(),
notion.list_tools(),
pandoc.list_tools(),
playwright.list_tools(),
request.list_tools(),
snowflake.list_tools(),
typesense.list_tools(),
win_cli.list_tools(),
google_calendar.list_tools(),
google_tasks.list_tools(),
iterm.list_tools(),
linear.list_tools()
]
for tools in tools_list:
for tool in tools:
use_less_tools.append({
"type": "function",
"function": {
"name": tool.name,
"description": tool.description,
"input_schema": tool.inputSchema
}
})
print(f"Number of useless tools: {len(use_less_tools)}")