()
| 36 | **Workflow:** search_api() → search_api(service="...") → search_api(operationId="...") → call_api(...)` |
| 37 | |
| 38 | func (s *Server) registerSearchTool() { |
| 39 | mcp.AddTool(s.mcpServer, &mcp.Tool{ |
| 40 | Name: "search_api", |
| 41 | Description: searchAPIDescription, |
| 42 | }, s.handleSearchAPI) |
| 43 | } |
| 44 | |
| 45 | func (s *Server) handleSearchAPI(_ context.Context, _ *mcp.CallToolRequest, input SearchInput) (*mcp.CallToolResult, any, error) { |
| 46 | var text string |