You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// This service provides methods to search MCP Tools and install MCP servers.
6
+
/// Be aware that tools installed using InstallTool are available as part of the ToolAssistant MCP server and the MCP serverId returned from search tool needs to be ignored while tool calling.
7
+
serviceToolAssistant {
8
+
operations: [
9
+
SearchTools
10
+
InstallTool
11
+
]
12
+
}
13
+
14
+
/// You MUST use the SearchTools MCP tool whenever the current toolset is not sufficient to complete the task.
15
+
/// Do not attempt to proceed with incomplete or inadequate tools.
16
+
/// SearchTools returns a ranked list of tools relevant to the task description—always use it to expand your capabilities.
17
+
/// If any required tool is missing, immediately install it using the InstallTool API.
18
+
/// This process can and should be repeated: keep invoking SearchTools and InstallTool until you have the tools needed to complete the task successfully.
19
+
/// Do not rely solely on the preloaded tools. Tool discovery and installation is a core part of your workflow.
20
+
operationSearchTools {
21
+
input := {
22
+
/// Generate a concise tool description based on the current dialogue context.
23
+
///
24
+
/// Focus on the user’s intent, including specific actions, platforms, or systems mentioned.
25
+
///
26
+
/// Include concrete nouns, URLs, acronyms, or product names that help identify the task.
27
+
///
28
+
/// The goal is to create a search query that helps SearchTools return the most relevant tools.
29
+
///
30
+
/// Avoid vague or generic phrasing—be as specific and task-oriented as possible.
31
+
///
32
+
// Example
33
+
///
34
+
/// Dialogue: "Hi, can you help me create a code review? I use code.amazon.com"
35
+
///
36
+
/// Tool Description: "Create a code review on code.amazon.com"
37
+
toolDescription: String
38
+
39
+
/// Number of tools to return based on relevance in descending order of relevance. If not specified, the default is 1
40
+
@default(1)
41
+
numberOfTools: Integer
42
+
}
43
+
44
+
output := {
45
+
/// List of MCP tools most relevant for the query, sorted by order of relevance,
46
+
/// the first tool being the most relevant.
47
+
@required
48
+
tools: Tools
49
+
}
50
+
}
51
+
52
+
listTools {
53
+
member: Tool
54
+
}
55
+
56
+
structureTool {
57
+
/// Name of this tool
58
+
@required
59
+
toolName: String
60
+
}
61
+
62
+
/// Install a new MCP Tool for local use.
63
+
/// Be aware that tools installed using InstallTool are available as part of the ToolAssistant MCP server.
0 commit comments