List available tools
(self)
| 123 | return None |
| 124 | |
| 125 | def list_tools(self): |
| 126 | """List available tools""" |
| 127 | response = self.send_request("tools/list") |
| 128 | |
| 129 | if "result" in response: |
| 130 | tools = response["result"]["tools"] |
| 131 | print(f"\n✓ Available tools ({len(tools)}):") |
| 132 | for tool in tools: |
| 133 | print(f" • {tool['name']}: {tool['description']}") |
| 134 | return tools |
| 135 | else: |
| 136 | print(f"✗ Failed to list tools: {response.get('error', {})}") |
| 137 | return [] |
| 138 | |
| 139 | def call_tool(self, name, arguments=None): |
| 140 | """Call a tool""" |
no test coverage detected