MCPcopy Create free account
hub / github.com/modelscope/ms-agent / get_tools

Method get_tools

ms_agent/tools/tool_manager.py:195–199  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

193 extend_tool(extra_tool, server_name, tool_list)
194
195 async def get_tools(self):
196 # Return tools in deterministic order to improve prompt/prefix cache hit rate
197 # across process restarts and across different MCP tool listing orders.
198 tools = [value[2] for value in self._tool_index.values()]
199 return sorted(tools, key=lambda t: (t.get('tool_name', ''), ))
200
201 async def single_call_tool(self, tool_info: ToolCall):
202 if self._concurrent_limiter is None:

Callers 1

reindex_toolMethod · 0.45

Calls 1

getMethod · 0.80

Tested by

no test coverage detected