(self)
| 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: |